Submit Form Validation

  • 30 November 2015
  • 2 replies
  • 5 views

Badge +3

This is piggy backing off a prior post about validating an attachment control for illegal characters. (illegal characters in attachment name ? )

In the Nintex 2013 form (attached) I am calling a routine to validate if the attachments in the form contain any illegal characters. If so it will highlight said file and throw an alert to the user explaining the issue.

The problem is unless there are no other invalid controls the form will submit. I need to to set the form as invalid and all the other validation in the form needs to run as well.

Any ideas?

Mike Trouard


2 replies

Userlevel 6
Badge +16

Perhaps on your validation action you could set a Calculated Value Control that has a validation rule:

For example write a validation rule that says if the value equals "1" , the form is not valid. So you must set this control to "1" on your script.

Badge +3

Fernando-

I thought about doing exactly that but I was hoping for a one liner that would have resolved it in the JavaScript/jQuery.

I did apply you suggestion and it worked.

148216_pastedImage_0.png

Mike Trouard

Reply