Skip to main content
Nintex Community Menu Bar
Solved

Attachment validation for nintex on Premise not working

  • June 13, 2023
  • 6 replies
  • 256 views
  • Translate

Forum|alt.badge.img+3

Hi,

I am trying to submit a nintex form with an error message popping up if the there isn’t at least one attachment if the answer to a question is yes. 

This is the question and if it is answered yes, then there must be 1 attachment. Without an attachment the form should not be allowed to submit unless if both conditions are true.

I already made sure the minimum attachment is set to 1 but it still submits without any errors. 

 

Should I be setting rules on the submit button for this? Please advise on how I can make this work. 

Thanks

Best answer by sunkars

This is fixed in our hot fix released in May 2023. This release is not available on our Customer central. Please contact support@nintex.com to get access to this release.

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

6 replies

SimonMuntz
Nintex Employee
Forum|alt.badge.img+22
  • Nintex Employee
  • 2464 replies
  • June 13, 2023

Hi @nikitapatel 

 

There are many ways to achieve solutions.

In this case I would leave your attachment control configured as it is.
Then add a rule to it equals(NameOfYourChoiceControl,”No”)

This hides the attachments control if no is chosen. When a control is hidden the validation on it no longer works so that means you can submit the form even though the attachment control says 1 attachment minimum.

If the user selects Yes then the attachment control will remain visible and the validation will work.
This would be the easiest way to do this.

Translate

Forum|alt.badge.img+3
  • Author
  • Rookie
  • 22 replies
  • June 14, 2023

Hi,

I have already configured the logic above. Where the attachments box is hidden if no is selected for the question. However, even when I test it where the answer to the question is yes, the attachments box shows up, but if I do not attach anything, it still submits without any issues. It should stop me since the minimum attachments is set to 1. 

Translate

SimonMuntz
Nintex Employee
Forum|alt.badge.img+22
  • Nintex Employee
  • 2464 replies
  • June 15, 2023

Hi @nikitapatel ,

 

I tested the solution before I provided it to you and it works for me.

Here is my form.

Translate

Forum|alt.badge.img+3
  • Author
  • Rookie
  • 22 replies
  • June 15, 2023

Hmm, for some reason it isn’t working on my end, could be due to using SP2013 I do have little annoyances here and there. I appreciate your help on this. 

Translate

SimonMuntz
Nintex Employee
Forum|alt.badge.img+22
  • Nintex Employee
  • 2464 replies
  • June 29, 2023

@nikitapatel ,

 

If the test form is not working I suggest trying a different browser and if the issue persists then try a different computer. Apart from that, you may need to look at the developer tools in the browser (F8) and look for any errors.  It is possible that the companies group policy may be blocking the javascript.

Translate

Forum|alt.badge.img+3
  • Nintex Employee
  • 9 replies
  • Answer
  • June 30, 2023

This is fixed in our hot fix released in May 2023. This release is not available on our Customer central. Please contact support@nintex.com to get access to this release.

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