Community

Hi, How do we validate Email (short answer) mandatory question is in correct format using validation rule? Certain responders enter incorrectly.. Eg spaces... con.. Etc

PRASAD SAMANT

Jul 18, 2024

Comments (8)

Vipin

Jul 18, 2024

You can add a Text - Email response validation for the short answer question in your form. This will ensure that the email address entered by the user is in the correct format. Please note that this will not check if it is a valid email address. Login to Neartail > click on the form to open it > Edit page will be displayed> In the Edit page, click on the email question to select it > click on the gear icon for this question > Question settings page will be displayed > click Answer > click Configure link for the Validation option > select Text, Email validation > enter a custom error message (optional) and click Save.

PRASAD

Jul 18, 2024

I tried that.. but not that promising.. is there any Regex for that?

Vipin

Jul 19, 2024

The Text - Email validation will work. If you are facing issues, please share an example along with the link for your form.

PRASAD

Jul 20, 2024

Hi vipin... just for e. g... if email address is abc@domain.com... i tried putting multiple combinations 1).abc@domain.com 2)a..bc@domain.com 3) abc@@domain.com 4) abc@domain.con all these were accepted. https://near.tl/pranitas-kitchen

Vipin

Jul 20, 2024

The error message will be displayed if you have entered any of the above emails as the answer for the short answer question with Text - Email response validation. Please note that the validations are performed when the user clicks on the Next or Submit button.

PRASAD

Jul 20, 2024

well i tried inputting n clicked next.. reaching to submit page... i didn't click submit on the next page

Vipin

Jul 21, 2024

All of the below examples are valid email format. You can test this in Google Forms as well. Please note that the email response validation will not check if it is a valid email address. abc@domain.com a.bc@domain.com abc@@domain.com abc@domain.con For example, if you enter abc@domain and click Next, it will show the error message. See screenshot below.

attachment
PRASAD

Jul 21, 2024

you mean all other e. g i provided... it will pass through? cause you mentioned it will display error message 1) .abc 2) a..bc 3) abc@@ 4) domain.con

Add your comment