I have a choice field (Incentives) that is formatted as a multi select checkbox. If the user includes T-shirt in their one or more selections, then I want to require a selection for T-shirt Size. I am not sure how to word the validation rule on the Size field to accomplish this. The syntax I have works if you have only the T-shirt option selected and I'm not sure how to revise it to say "if T-shirt is included in the one or more choices, then require the Size".
Incorrect/incomplete rule on Size field: {Self} == "" && IncentiveOptions == "T-shirt"
Solved! Go to Solution.
Hi Mindy,
You can use the formula like this. Means if your choice contain the value "T-Shirt" and the Shirt Size value is empty, the validation will trigger. You can disable the control of Shirt Size control if the choice does not contain "T-Shirt", so user won't select any value in there until they select "T-Shirt". I put and trigger the formula on the Save button.
=and(isNullOrEmpty(TShirtSize),contains(Choice,"T-Shirt"))
Please let me know if it work for you.
Thank you!!!!
Here is the syntax I put on the validation rule for the t-shirt size choice field:
Nintex Forms Designer - MASH Donation - Item
I too had to write the validation string like mindymac03 instead of the way marked as the answer for it to work.
what if I wanted it required when it does not equal 1 of the 5 choices i have?