Form question validation


(Tony Kidman) #1

Hi,

 

I have a form that uses a select box with Yes / No answers.

 

I want to validate the following input so that if:

  • Yes is selected then the input must contain data
  • No is selected then the field can be empty

How would I go about using the validation rules?

 

I need to know this so other users can apply in future - the javascript option is too advance for some users and this process can be documented and applied with limited html/js knowledge.

 

Any help greatly appreciated.

 

Kind Regards

Tony


(Bart Banda) #2

Have a play with the complex validation rules (http://manuals.matrix.squizsuite.net/custom-form/chapters/questions#Validating-a-Question). You should be able to add a validation to a form field only if a different form field matches a certain value.