Customised forced response for side by side question | XM Community
Skip to main content

I have a side-by-side question set up like this:

Validation should pass if the survey taker selects one program under Program Preference 1 and one intake under Preferred Intake. Validation should not pass if only the Program Preference is selected.

Validation should pass if the survey taker selects a program and an intake under Program Preference 1 and a program and an intake under Program Preference 2. Validation should not pass if preferred intake under Program Preference 2 is not selected.

And so on…

How can I achieve this?

 

 

This seems like something you could accomplish with Custom Validation. If you are new to this feature, it can seem complicated at first, so you’ll want to build each condition one-by-one and test it before adding the next condition. And make sure not to use Force Response when you’re using Custom Validation.


I have set up the custom validation like this: 

This allows survey takers to enter one program preference with one intake and pass validation, but also enter two program preferences with one intake, and still pass validation. This should not pass validation, though, only when an intake for program preference 2 is selected should validation pass. 

Is there something wrong with my logic?


I think you’ll need to spell out the exact conditions for all permitted scenarios of lines 2-5 in each logic set (the conditions found between each bold “OR”) after the first.

It would be something like this; the first two conditions in your logic are correct as is.

IF 

Preference1 is not empty

and Intake1 is not empty

AND

Preference2 is empty

and Intake2 is empty

and Preference3 is empty

and Intake3 is empty

and Preference4 is empty

and Intake4 is empty

and Preference5 is empty

and Intake5 is empty

OR

Preference2 is not empty

and Intake2 is not empty

and Preference3 is empty

and Intake3 is empty

and Preference4 is empty

and Intake4 is empty

and Preference5 is empty

and Intake5 is empty

OR

 

Preference2 is not empty

and Intake2 is not empty

and Preference3 is not empty

and Intake3 is not empty

and Preference4 is empty

and Intake4 is empty

and Preference5 is empty

and Intake5 is empty

OR

 

Preference2 is not empty

and Intake2 is not empty

and Preference3 is not empty

and Intake3 is not empty

and Preference4 is not empty

and Intake is not empty

and Preference5 is empty

and Intake5 is empty

OR

 

Preference2 is not empty

and Intake2 is not empty

and Preference3 is not empty

and Intake3 is not empty

and Preference4 is not empty

and Intake is not empty

and Preference5 is not empty

and Intake5 is not empty


Leave a Reply