Symptoms
I have multiple views on a form.
Each view has checkboxes and a text field.
If a checkbox on the view is checked, I want it to validate the textbox.
I have a complex rule which checks for each combination of views withwithout checked checkboxes.
Sometimes it incorrectly passes validation.
Diagnoses
Not a good solution. Hiding the text controls and only validating shown controls will work better.
Resolution
For each view, if one or more of the checkboxes is checked, the text box is visible. If no checkboxes are checked, then the text box is hidden.
On the form, all the text boxes require validation, but I have checked the 'do no validate hidden controls' checkbox.
So when the form runs, if a text box is hidden, it is not validated.