none
Attachments disappear after validation post back

    Question

  • When creating a new item with attachments, if there is missing the required field, system post back the message "You must specify a value for this required field." and the entered column value to user.   But system do not post back the attachment path to user. Then user need to re-process the attach file process.    Can it be fix? For example, When post back, system can return all user input into the form with error message after validation post back.
    Thursday, June 23, 2016 8:07 AM

All replies

  • I don't think so. When you attach a document to a list item a folder is created with the list item ID to contain the attachments. That ID is only assigned on creation and that will be blocked by validation or creation errors. It's not a situation I've encountered often but I can see why it'd be annoying.

    One workaround would be to use JavaScript to pre-validate fields before submission.

    Thursday, June 23, 2016 8:28 AM
  • Thanks
    Wednesday, July 6, 2016 9:17 AM