cancel
Showing results for
Did you mean:
Highlighted
Nintex Newbie

## Responsive form Attachment Control validation

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?

Labels: (2)

Tags (2)
3 Replies
Highlighted
Nintex Newbie

## Re: Responsive form Attachment Control validation

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
Nintex Newbie

## Re: Responsive form Attachment Control validation

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.

Highlighted
Nintex Newbie

## Re: Responsive form Attachment Control validation

@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.