Skip to main content
July 23, 2025
Solved

How to band the validation with the button

  • July 23, 2025
  • 5 replies
  • 0 views

There are two button in my form, one is submit another is cancel. I have many validations in my form, but I notice that, the validations are applied to both buttons. I've also tried the validation group, but the behavior is after I click the button the validation will take effect.What I expect is that the verification will be performed after the user has entered the content, and it will only take effect on the submit button. Is this possible in Appian? If the validation group is the only way I can achieve, Is it possible to disable the submit button after the validation triggered?

Best answer by harshas2775
the validations are applied to both buttons

you might have validate set to true for Cancel button also. You should turn it to false. 

Is this possible in Appian?

Yes it is! To achieve this set a validation group in the submit button widget e.g. “submitValidate” . Next add the same validation group in all the fields you want to validate after submit button click. Like if you have a textfield it should have validation group set with same value “submitValidate”.

If the validation group is the only way I can achieve, Is it possible to disable the submit button after the validation triggered?

No its not! And if you are validating your form on this button click it should be enabled as well so that users clicks on it and validations are performed.

5 replies

harshas2775
July 23, 2025
the validations are applied to both buttons

you might have validate set to true for Cancel button also. You should turn it to false. 

Is this possible in Appian?

Yes it is! To achieve this set a validation group in the submit button widget e.g. “submitValidate” . Next add the same validation group in all the fields you want to validate after submit button click. Like if you have a textfield it should have validation group set with same value “submitValidate”.

If the validation group is the only way I can achieve, Is it possible to disable the submit button after the validation triggered?

No its not! And if you are validating your form on this button click it should be enabled as well so that users clicks on it and validations are performed.

July 23, 2025

Thanks

shubhama926776
July 23, 2025

The Cancel button issue occurs when its validate property is set to true - switch this to false to prevent validations from firing. To ensure validations only execute when Submit is clicked, assign a validationGroup property to your Submit button, then apply this identical group name to every field requiring validation.
This approach means validations remain dormant until Submit is pressed.
Regarding disabling the Submit button after validation triggers - this isn't feasible with validationGroup since the button must remain clickable to actually fire those validations in the first place.

July 23, 2025

Thanks