For the constant sum question, is there a way to restrict answers to be round numbers? | XM Community
Skip to main content
Solved

For the constant sum question, is there a way to restrict answers to be round numbers?

  • June 26, 2020
  • 1 reply
  • 31 views

Forum|alt.badge.img+1

Hi,
I am having participants enter two numbers that add up to 100 using the "constant sum" question type. I want their responses to end with 0 only i.e. be multiples of 10 (0, 10, 20...). I cannot find a way to do that in the existing Qualtrics functions.
I tried using custom validation and restrict the answers to match 0, 10, 20, ..., 100, but in that case, the constant sum restriction no longer works.
Would I be able to achieve this via the regex code in the Custom Validation function?
Thank you!!

Best answer by TomG

Try regex: ^[0-9]*0$

View original

1 reply

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5926 replies
  • Answer
  • June 26, 2020

Try regex: ^[0-9]*0$


Leave a Reply