Using Numeric Entry | Experience Community
Skip to main content
Question

Using Numeric Entry

  • Mar 12, 2024 7:56 PM UTC
  • 6 replies
  • 1721 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 ●●●●●●●●
  • Mar 12, 2024 8:06 PM UTC

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


Sachin Nandikol
QPN Level 7 ●●●●●●●
Forum|alt.badge.img+54
  • QPN Level 7 ●●●●●●●
  • Mar 13, 2024 3:43 AM UTC

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 ●
  • Mar 13, 2024 1:42 PM UTC

Awesome, thank-you!

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


Sachin Nandikol
QPN Level 7 ●●●●●●●
Forum|alt.badge.img+54
  • QPN Level 7 ●●●●●●●
  • Mar 13, 2024 1:48 PM UTC

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 ●●●●●●●●
  • Mar 13, 2024 1:49 PM UTC

@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 ●
  • Mar 13, 2024 1:50 PM UTC

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”