max and min values! Can I create a rule than an answer to Q.1 cannot be larger than the answer to Q.2? | XM Community
Skip to main content

I am trying to get maximum and minimum values from respondents. 

It will only make sense if the max is always larger than the min. Is there a way that I can create an error/block if participants get their results the wrong way around?

Hi @symonc ,

Perhaps you can set it up in survey flow with branch logic and embedded data such that if Q1 value > Q2 value, then maxvalue =Q1 value and minvalue = Q2 value. Then, another branch would be Q1 value <= Q2 value, then maxvalue = Q2 value and minvalue = Q1 value.  You can piped the embedded data minvalue and maxvalue if you wish to use it in other questions or conditions.

 

For the Q1 value = Q2 value scenario, you can also place it as another branch depending on your preference.


Hi @symonc ,

 

or you can try to set custom validation at Q2.

Q2 is greater than ${q://QID1/ChoiceTextEntryValue}

 

This method seems less tedious than my earlier suggestion.


Leave a Reply