Custom validation using piped answers | XM Community
Skip to main content
Solved

Custom validation using piped answers

  • July 31, 2024
  • 2 replies
  • 64 views

Forum|alt.badge.img+1

Hi everyone,

 

I have one multiple-choice question, and the next one is a side-by-side with statements as piped choices from the last question. This side-by-side question is three columns with text entry.

Now, I want to add validation that for each statement, you cannot input “0” in any of the columns’ answer.

But, the validation prevents users that have not chosen all the statements in the previous question from progressing with the survey - help!

Best answer by TomG

You can do it, but it is cumbersome.  For each text entry you need four conditions:

if statement selected in previous question

and text entry is not equal 0

or statement not selected in previous question

and text entry is empty

Add a logic set for each text entry and AND them all together.

2 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6084 replies
  • Answer
  • July 31, 2024

You can do it, but it is cumbersome.  For each text entry you need four conditions:

if statement selected in previous question

and text entry is not equal 0

or statement not selected in previous question

and text entry is empty

Add a logic set for each text entry and AND them all together.


Forum|alt.badge.img+1
  • Author
  • 1 reply
  • July 31, 2024

You can do it, but it is cumbersome.  For each text entry you need four conditions:

if statement selected in previous question

and text entry is not equal 0

or statement not selected in previous question

and text entry is empty

Add a logic set for each text entry and AND them all together.

I see, I missed the “or” statement, thank you!