Need help in creating the expression to limit values for a text field. I would like the app to not accept an input reponse that is pure numeric. For example, for a field for name of company, the following are acceptable:
123 Marketing Inc.
ABC-123 Company
ICT4D Solutions, Inc.
But the following are not :
989965223 2554
85585475
12345
Thank you so much, Yaw. There's an update to our requirement. Am not sure if anybody has an idea on how to implement this. We would like to the app to not allow a value with 4 or 5 digits in a string. For example, the following are acceptable:
123 Marketing Inc.
ABC-123 Company
ICT4D Solutions, Inc.
But the following are not:
98996XYC
12345
A2537
Or, if there's a way to flag a data collector that the string entered contains numbers and that he/she may have entered data incorrectly.
I am writing a survey in ODK Collect and for some text questions (e.g. individual's name) I would like to allow only letters to be entered. I have seen in this post that it was suggested to add regex(., '[A-Za-z]') to the constraint column. However, when doing this, the survey gets converted in xml fine but then does not allow me to enter an answer on the app. Do you know why this is happening?
Many thanks in advance for your help
Best,
Olimpia