Skip to main content
Nintex Community Menu Bar
Question

Ensure user adds an attachment when a certain selection is made - Nintex Forms

  • Dec 16, 2024 1:53 PM UTC
  • 8 replies
  • 169 views
  • Translate All

Forum|alt.badge.img+4

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

 

8 replies

  • Dec 16, 2024 4:28 PM UTC

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.

Translate

Forum|alt.badge.img+4
  • Author
  • Scholar
  • Dec 16, 2024 5:06 PM UTC

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

Translate

Forum|alt.badge.img+4
  • Author
  • Scholar
  • Dec 16, 2024 5:19 PM UTC

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.

 

 

Translate

  • Dec 17, 2024 10:30 AM UTC

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.

Translate

Forum|alt.badge.img+4
  • Author
  • Scholar
  • Dec 19, 2024 1:36 PM UTC

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.

 

Translate

Forum|alt.badge.img+4
  • Author
  • Scholar
  • Dec 19, 2024 3:08 PM UTC

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

Translate

Forum|alt.badge.img+4
  • Author
  • Scholar
  • Dec 20, 2024 1:30 PM UTC

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?

Translate

  • Jan 6, 2025 8:49 AM UTC

You could try to put the rule on the attachment field and then use {Self} from the named controls instead, see if that works.

Translate