Wednesday, August 15, 2018

SharePoint List Attachment Field Validation through Info Path

1.) Create a field in addition to the attachments field. In my case, I called the field I created Attachment Validation.
2.) Drop your field onto the form and remove the borders and background. Then set the default text to ‘Attachments:’
InfoPath 2010 Attachments Field Validation
3.) Finally, lets apply some validation to this field. Right click the field on your form and select Rules > Manage Rules.
In my case, I needed to make sure there was at least one attachement. So, I counted the :attachmentURL instances and checked if there were more than 0. To do this, I used a custom expression:
Now with all of that complete you will have a separate field that validates the attachments field and if there are no attachments, the text in the left hand column will be surrounded in the standard red dashed border.
InfoPath 2010 Validation on Attachments Field
NOTE:
To get to the ‘:attachmentsURL’ field you need to create the validation make sure you go into Advanced View of the fields.
InfoPath 2010 Attachments :attachmentURL field advanced view

No comments:

Post a Comment

SharePoint List Attachment Field Validation through Info Path

1.) Create a field in addition to the attachments field. In my case, I called the field I created Attachment Validation. 2.) Drop your f...