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.
A formatting rule has been created, which is applied to the panel control:
Also, a Validation rule has been created to require data in the Multi text box:
If the user is not required to show the second panel and tries to submit the form, they will still see the Validation error:
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:
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: