Responsive form Attachment Control validation

  • 27 February 2020
  • 4 replies
  • 236 views

Hi Nintex Experts,

 

I am using responsive form 365. I want to validate attachment control by checking other form control/s. I tried to create validation rule but i am not able to find attachment control name in named control?

Can any one help me with how to achive it?

 

 


4 replies

Userlevel 3
Badge +9
Not sure what you mean by "validate attachment control by checking other form control/s", however, you can create a variable and use the count function to enumerate how many attachments there are. Then use the variable in the rule for something.

So the integer variable (int Attachment Count) definition could be: count([Form].[Attachments])

Your rule can then reference the variable (int Attachment Count) is greater than zero then do whatever.

I hope this helps you get started

Thanks for your reply. I want to make sure that either a link is provided(a simple text box inform) or attachment is added( attachment control). I wanted to create a rule that if link field is empty and attachment is alos not attached then show error message.


Its Nintex responsve list item form  not task form in workflow. I was not able to follow steps you mentioned, please let me know if i am missing something.

@v-tmasenko - is there a way to validate a specific attachment control? E.g. My form has two attachment controls: the default one which is shown at all times, and a second one which is shown conditionally; when that second one is shown, it also needs to be validated. Thanks. 

Yes this works. Thank you.

Reply