ODK Regex problem

Good morning, everyone. I’m having a problem with the ODK. When formatting a question in KoboToolbox so that a given field only receives 11 digits from 0 to 9 as an answer, I used the following regex(., ‘[1]{11}$’) expression
However, the ODK only accepts 9 numbers and not 11 as it should. Does anyone know what might be happening and how I can fix it?
Thank you,
Cris


  1. 0-9 ↩︎

Welcome @criscamboim
For ODK related question, you may better address the ODK forum.
You can find hints for your problem here, please:
- Question Types - ODK Docs
- Limits on Number and Text Responses — KoboToolbox documentation
- Restricting Text Responses With Regular Expressions — KoboToolbox documentation.

And you can finf several similar discussions and examples with the search function of both fora.

1 Like

@criscamboim, this post discussed previously should help you solve your issue:

Please note to ensure the following:

  • Your question type should be text instead of integer.
  • The appearance column should have numbers