Skip to main content

I have a single line of text field with a validation rule based on the value of the preceding choice field, named Q3.  If the value of Q3 equals Yes, an explanation is required, Q3E.  But even though I have included an explanation, the form keeps prompting me to complete the field.  See attachment SaveResults.jpg

See ValidationRule.jpg for the validation rule configuration.  I suspected that it could be that I created my formula backward, so I have reversed the formula and tried it both ways.  In the reverse, it will allow the form to be saved with or without a response, which is not correct either. 

Hello Ellen Farley​ -

You are on the right track!

You will want to have your validation rule check to see if the Yes/No is true AND your text is empty, if so, it is invalid.

So in my example, I have a Yes/No control and my title control (in a panel, easier to hide the section!).

186249_pastedImage_0.png

The hide rule is applied to the panel and is easy enough (I think you have that part down happy.png):

186250_pastedImage_2.png

The validation is on the title control within the panel:

186263_pastedImage_3.png

The validation checks to see if it is "required" and then if it is blank, if so, complain!

Here it is published:

186264_pastedImage_4.png

186265_pastedImage_5.png

186266_pastedImage_6.png

I also attached the form .xml file in case you want to see it in action for yourself and mess around with it.

Let us know if you need anything else happy.png

Hope this helps!


That did it...thanks.


Glad you got it working!

You just needed another set of eyes on it wink.png


Reply