Using Numeric Entry | XM Community
Skip to main content
Question

Using Numeric Entry

  • March 12, 2024
  • 6 replies
  • 800 views

Forum|alt.badge.img+1

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. 

6 replies

Shashi
Level 8 ●●●●●●●●
Forum|alt.badge.img+34
  • Level 8 ●●●●●●●●
  • 654 replies
  • March 12, 2024

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


Sachin Nandikol
QPN Level 6 ●●●●●●
Forum|alt.badge.img+44
  • QPN Level 6 ●●●●●●
  • 530 replies
  • March 13, 2024

Hello @HollyP

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

 


Forum|alt.badge.img+1
  • Author
  • Level 1 ●
  • 6 replies
  • March 13, 2024

Awesome, thank-you!

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


Sachin Nandikol
QPN Level 6 ●●●●●●
Forum|alt.badge.img+44
  • QPN Level 6 ●●●●●●
  • 530 replies
  • March 13, 2024

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.


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6083 replies
  • March 13, 2024

@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.


Forum|alt.badge.img+1
  • Author
  • Level 1 ●
  • 6 replies
  • March 13, 2024

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”