cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Multiple Choice field validation

Jump to solution

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"

0 Kudos
Reply
4 Replies
Workflow Hero

Re: Multiple Choice field validation

Jump 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.

Reply
Workflow Hero

Re: Multiple Choice field validation

Jump to solution

Thank you!!!!

Reply
Workflow Hero

Re: Multiple Choice field validation

Jump to solution

Here is the syntax I put on the validation rule for the t-shirt size choice field:  

Nintex Forms Designer - MASH Donation - Item

isNullOrEmpty(TshirtSize) && contains(IncentiveOptions,"T-shirt")
Reply
Workflow Hero

Re: Multiple Choice field validation

Jump to solution

I too had to write the validation string like mindymac03 instead of the way marked as the answer for it to work.

0 Kudos
Reply