Skip to main content
Nintex Community Menu Bar
Question

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

  • December 16, 2024
  • 8 replies
  • 64 views

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

 

Translate
Did this topic help you find an answer to your question?

8 replies

  • 69 replies
  • December 16, 2024

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
  • 12 replies
  • December 16, 2024

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

Translate

Forum|alt.badge.img+4
  • Author
  • Scholar
  • 12 replies
  • December 16, 2024

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

  • 69 replies
  • December 17, 2024

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
  • 12 replies
  • December 19, 2024

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
  • 12 replies
  • December 19, 2024

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
  • 12 replies
  • December 20, 2024
BobR wrote:

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

  • 69 replies
  • January 6, 2025

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

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings