sean.fiene@nintex.com

Validation Around Hidden Elements

Blog Post created by sean.fiene@nintex.com Support on Feb 5, 2015

Summary

How to configure a Rules to only validate if controls are visible.

 

Symptom

Nintex Forms Validation will still trigger on hidden form controls, even though the control(s) was not intended to be validated.

 

Cause

The below example shows a form with a Choice control used to show/hide a second panel. The second panel contains a Multi line text box that is required.

 

designerNew.png

A formatting rule has been created, which is applied to the panel control:

goodHideRule.png

Also, a Validation rule has been created to require data in the Multi text box:

badValidationRule.png

If the user is not required to show the second panel and tries to submit the form, they will still see the Validation error:

 

badFormPreview.png

Resolution

The Validation rule will have to trigger if the required control is visible (in this case the panel) and the Multi line text box is blank:

goodValidationRule.png

The below form will show that only the required 'Test' field is needed to submit the form and that the Mult line text box validation is ignored:

goodValidationPreview.png

Outcomes