About phone number regex

Hello all,

I have written the following regex for setting up the phone number limit to 10 digits not more not less but its not working on my odk collect android app.
regex(.,'^[0-9]{10}$')
Is there any alternative or solution to the above regex condition ???

TRY THIS

1 Like

Hello Dipesh,

Do use this constraint regex(.,'[0-9]{10}') It's working on my end.

Regards,
Dinesh Dongol

1 Like

hello dinesh,

I have used the above constraint but I can write more than 10 digits of number.
Can i limit to only 10 digits of numbers writable ?

Thank you

Hello Dipesh,

Though they allow writing more than 10 digits, it will not allow the data collectors to move forward if the digits are lesser or more than 10 numbers.

Regards,
Dinesh Dongol