Hi everyone,
I have a question to enter the patient code. The patient code consists of 3 digits from 001 to 100. I tried using regex (., '[0-9] [0-9] [0-9]') but not. Please help me find a way to solve this problem.
Thanks,
Huy.
Hi everyone,
I have a question to enter the patient code. The patient code consists of 3 digits from 001 to 100. I tried using regex (., '[0-9] [0-9] [0-9]') but not. Please help me find a way to solve this problem.
Thanks,
Huy.
Hi @Huy_Tron! I see two problems:
text
and appearance is numbers
. This is because regular expressions only apply to strings.[0-9][0-9][0-9]
, not [0-9] [0-9] [0-9]
. Actually, you could reduce the regex to '[0-9]{3}
and that would also work.What I mentioned above is described in great detail in our docs at https://docs.opendatakit.org/form-regex. I'd encourage you to read those docs if you have more regex questions.
Also, when you get a chance, please introduce yourself here. It helps build community!