cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Nintex Newbie

Validation Rule to Require Attachments

Nintex in SPO

 

Very simple validation rule needed.  I have an "Attachments?" question.  If the User selects "Yes," I want an attachment to be required.  

 

A simple Validation rule on the Attachment control like this should work, right?

IsNullEmpty(Self)&&Attachments=='Yes' 

 

Is there seriously no way to accomplish this without using JS? 

 

Capture.PNG

Labels: (1)
0 Kudos
Reply
2 Replies
Highlighted
Automation Master
Automation Master

Re: Validation Rule to Require Attachments

@anderj39 .....I'm not sure if File Upload have the option of Minimum Attachments in Validation or not?

 

In on-prem attachment control do have the option to provide minimum attachments and maybe using run time formula we can set the value to be either 0 or 1 based on AttachmentDD value.

 

But if that's not the option then instead of using your formula try to use If statement in validation rule of attachment control

 

If(equals(AttachmentsDD, "Yes"), If(isNullOrEmpty(ItemProperty:Attachments), "Please attach files", false), false)

0 Kudos
Reply
Highlighted
Nintex Employee
Nintex Employee

Re: Validation Rule to Require Attachments

I dont think ItemProperty:Attachments will work on a new form as the item would not have been created so therefore this would always come up as zero or null.
0 Kudos
Reply