How to validate fields on button click


Badge +2

Hi All,

I have to validate the below fields on button click, i know people are referring to have Yes/No control and implement it. But my client is enforcing me to use button only. I have also proposed to have required fields instead button click. They are not happy with it. Please guide me.

215285_pastedImage_1.png


3 replies

Userlevel 5
Badge +14

do you mean to invoke standard validation rule assigned to a control or to invoke some custom (javascript) validation?

I know client is alway right (happy.png), but you should convince him validation rules are the strandard way how nintex forms are designed to work.

validation on button click is unreliable and depends on user action. if he/she doesn't click the button for any reasons, he/she might be able to submit incorrect data.

button vs. Yes/No: you could create a choice control with single option 'Validate' and let it render as button.that might have satisfied the client.

Badge +11
Did you ever find a solution? If you did, could you share your approach?
Badge +12

@ramanjjilu ......You know that validation rules with a submit button on the form will behave the same way. 

 

Let's say your....

 

System Manager cannot be blank --> create that as a validation rule - Msg will be "Please provide System Manager's name, it cannot be empty"

 

Review Comment cannot be blank ---> Same as above

 

Review Date --> Validate that Review date is of today's or future...if not then msg will be "Review date cannot be past date." 

 

Instead of Validate button, simply change the label & function to "Submit".

 

Now if any of the validation rule is invalid it will highlight that field and on top of the form it will display your custom message.

Reply