Hi, I am trying to use regex(., ‘^[1935-2006]{4}$’) to limit the entry of year of birth between 1935 to 2006, but it didn’t work. Any thoughts? Thanks.
@mabdulkareem, you could do it as shown in the image shared below:
In the survey tab of your xlsform:
Data entry screen as seen in Enketo: when date is entered outside the range
Data entry screen as seen in Enketo: when date is entered within the range
Data entry screen as seen in Enketo: when date is entered outside the range
Reference xlsform:
Regex_Constraint.xlsx (10.0 KB)