How do we set a maximum length?

Hi,
I want to know how can we restrict user to enter only 5 digit or character and will not allow the user to enter the 6th character. I know we can do it via constraints but it allows to enter the digit but will not allow to proceed further. I want to restrict user to just not allowed to enter on the spot, it’s something like setting a max length.

Hi @khasaab,

You could do the same by following the instructions as mentioned in the image below:

In the survey tab of your xlsform:
Image%201

Reference xlsform:
Five Character Constraint Example.xls (25.5 KB)

GOOD DAY!