How to allow only specific numbers in a response? | XM Community
Solved

How to allow only specific numbers in a response?

  • 12 May 2020
  • 2 replies
  • 341 views

I am trying to customize some questions to only allow specific numerical responses (0-31, 999). The approach would potentially seem to be best in creating a javascript array with all the allowed numeric responses followed by running a if-then loop.

Would this be the best approach or is there a better method someone has already done that might work better?

Thank you for your time and feedback

icon

Best answer by TomG 12 May 2020, 17:04

View original

2 replies

Userlevel 7
Badge +27

You can use custom validation to do this. It would be three conditions:
x equal to 999
OR x greater than or equal to 0
AND x less than or equal to 31

Thank you so much for that clarification, TomG!

Leave a Reply