Block the phone number in nine positions

[Bloquer l’utilisateur de sorte que lorsqu’il / elle tape, cela ne puisse pas dépasser autant de chiffres (Par exemple, qui ne peut pas entrer un numéro de téléphone avec plus de 9 chiffres.

[Block the user so that when he / she types it cannot exceed as many digits (For example, who cannot enter a phone number with more than 9 digits.

Hi @wote,

Welcome to the community! You could do the same as outlined in the image below using regex code:

In the survey tab of your xlsform:

Data entry screen as seen in Enketo: Error showing while entering a wrong entry

Data entry screen as seen in Enketo: Error not showing while entering a correct entry

Reference xlsform:
Phone Number (Regex).xlsx (10.1 KB)

You could also have a look at our support article Restricting text responses with regular expressions to learn more on regex.

Have a great day!


Thanks you .
It works

1 Like