In one of our format, we have a numerical data field where we are expecting a 14 digit number between 10000000000000 and 99999999999999. Same validation we have added in the form. In the preview it is working well. But, the data collectors are able to enter only up to 10 digits.
Welcome back to the community, @Tush! You could do it as outlined in the image shared below:
Here you will need to use the
text question type instead of the
integer question type and then add
numbers under the
Tried…but is still gives error
How to restrict numerical characters to 14 only?
For this, you will also need to use the
regex code as discussed in the post discussed previously:
I am facing the same issue while data collection through mobile. The digits aren’t entering more than 9 on mobile, but it’s working fine on desktop.
Welcome back to the community, @mumtaz4uali! Try the following regex code:
Note: You will have to make the
question type as text and
appearance as numbers. For more regex code, please visit our support article Restricting Text Responses With Regular Expressions.