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

Invalid error message in custom validation

  • September 28, 2021
  • 2 replies
  • 117 views

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

Best answer by MatthewM

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

View original

2 replies

MatthewM
Level 6 ●●●●●●
Forum|alt.badge.img+30
  • Level 6 ●●●●●●
  • 1069 replies
  • Answer
  • September 28, 2021

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


  • Author
  • 1 reply
  • September 29, 2021

Thank you, MatthewM .


Leave a Reply