Skip to main content

I have a form that has a choice field. We want it to prompt the user to have to add an attachment when certain choice is made.

Ex: Ship Cause is LTR then have a message display and ensure the user adds an attachment.

 

I currently tried adding a Validation rule like this, but it isn’t functioning as I want.

 

Ship_x0020_cause == "LTR" && Attachments.count == 0

 

and(equals(Ship cause,”LTR”),isNullOrEmpty(Attachment field))

Link it to the control fields, you can put the rule on either the attachment field or on the save button.


Will this allow me to display a message that an attachment is required to submit?


I should also state, here are the fields. I want when Type of Alert equals LRT then it forces the user to attach a failure report document to the item.

 

 


Yes, when you add a validation rule (when rule X is true, invalidate), there should be a field you can enter in the rule where you can write an error message, it should display on the form in red text next to the element that has the validation rule when it triggers. I don’t know how the field is labeled in English Nintex, on Dutch Nintex it has a weird and nonsensical name, but it should be the one on the bottom.


Here’s what I have, but it doesn’t seem to work? So when Type of Alert = BPR it forces the user to attach a document.

 


Here’s what I have, but after I add an attachement, it still won’t save?

and(TypeofAlert == "BPR",isNullOrEmpty(Attachments))

 

TypeofAlert = Named Controls

Attachments = Item Properties

 

Any idea why it won’t save after adding an attachment?

 

Rule is on the SAVE button


and(equals(Ship cause,”LTR”),isNullOrEmpty(Attachment field))

Link it to the control fields, you can put the rule on either the attachment field or on the save button.

Hi Bob, so the Attachments field is in the list and doesn’t have a Name Control, it’s only visible in the Item Properties. Is there a work around for this?


Reply