Invalid error message in custom validation | XM Community
Skip to main content

Untitled.pngI have added the following response requirements to the question above. The first one is "Force response" and the second one is a custom validation requirement that restricts responses to be greater than 0, as shown below:
Untitled2.pngI have to note here that the two options depicted in the first picture above is the result of a display logic statement where a respondent selected, in this case, 2 out of 6 options. What am I doing wrong with my custom validation requirement and I get that invalid error message (i.e. the value must be greater than 0) when indeed both responses are greater than 0?

Thank you in advance for your help.
Teo

You have to be careful when using display logic and custom validation together. The custom validation isn't smart enough to realize that four of the rows are hidden, so it considers their blanks to be 0. You need to adjust the validation conditions so it accepts each line if GT 0 or Not Displayed, as shown below.
image.png


Thank you, MatthewM .


Leave a Reply