nz54
March 22, 2023, 8:28am
1
in a space meant to fill in the email in a survey, how can we make the format with @ or @…com
@nz54 , though I did not understand your issue very well, I could guess that your issue is related to the regex code to control the wrong entry of an email id. If this is the case, you could do it as outlined in the post discussed previously
Welcome back to the community @msupriya ! You could do the same as outlined in the image below:
In the survey tab of your xlsform:
[Image 0.0]
Data entry screen as seen in Enketo: when a wrong entry is made
[Image 0.1]
Data entry screen as seen in Enketo: when a correct entry is made
[Image 0.2]
Reference xlsform:
Email Regex.xlsx (8.6 KB)
And this one too …
Hi @esario and @nat ,
Following regex will let you add more than one dot after the initial dot. It won’t limit to 2 dots.
regex(., ‘^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+[.][A-Za-z.]{2,}$’)
Best,
You should also be able to learn more about regex code through this support article Restricting Text Responses With Regular Expressions .