Using Numeric Entry | XM Community
Skip to main content

I am trying to write a question asking the customer for the amount of days they waited for something by mail.

I have tried setting the form fields to allow a numeric answer, and am not having any luck. 

I want them to write a number of days between 1 and 30. 

Please advise. 

We can use number validation with range from 1 to 30 and decimal 0 in text entry question type.


Hello @HollyP

As Shashi mentioned, you can achieve this by setting up a validation rule similar to the one below:

 


Awesome, thank-you!

When I preview after doing this, it is still allowing text to be entered, not just numeric? 


Hello @HollyP

Ensure that after making changes, you have published your survey. Then, take an anonymous link and test the survey in incognito mode, as there might be some cookies causing this issue.


@HollyP,

Validation occurs when the Next button is clicked.

If you want to prevent the respondent from entering an invalid response, you have to do it with JavaScript.


Thank-you so much, I appreciate your help! I didn’t try to go to the next page, and see it says “Please enter a valid number”


Leave a Reply