May 20, 2020 09:33 AM
Email fields in forms don’t seem to be validated very strongly. My form keeps accepting entries like “name. lastname@host.com” (notice the space).
How do I prevent the form from accepting badly formatted emails like this?
May 20, 2020 10:19 AM
That might be a byproduct of the fact that you can add multiple email addresses to an email field, as long as they are separated by a comma (or a comma and a space).
I think that if you want to catch badly-formatted email addresses, you would need to create a formula field and setup the formula to return some word (or even an emoji such as :x: ) to let the user know that the email address was badly-formatted.
You could also create a JavaScript which you could manually run to check all of your email fields, but that would require manually running the script every time you want to check.
May 20, 2020 10:24 AM
Oh, sorry, you’re referring to a form.
Using Airtable’s built-in forms, I don’t think you can stop them from submitting a form with a badly-formatted email address (for the same reason as above), so may want to switch to an external form building tool that supports that.
However, if you stick with Airtable forms, there is a tool that can help you out.
AFTER they submit the form, you could use this tool to display a preview to them of what they just submitted, and it could display the :x: (or some other warning) if they submitted an invalid email address, and then they have the option to go back and modify the form:
If they don’t go back and edit the form to fix their mistake, then you would be able to see the :x: in your own Airtable system… you could even create a special view that filters only the records that have the :x: .
May 21, 2020 11:14 PM
They’re currently not validated at all. If validation is important, I second the suggestion from @ScottWorld to consider using a third-party form tool like TypeForm or JotForm. There are probably more, but those two come to mind right away, and both support email validation. JotForm also has a built-in option to connect to Airtable for form submission, and this is available in the free JotForm account. TypeForm has a similar feature, but it requires their lowest paid tier.
May 16, 2023 04:25 PM
Had a slight workaround. But could be improved.
It's not the best workaround. If I could somehow implement ALL these conditions in
Email address | What makes it invalid |
@domainsample.com | The recipient's name is missing. |
johndoedomainsample.com | The @ symbol is missing between johndoe and domainsample.com. |
john.doe@.net | The domain name (domainsample) is missing after the @ symbol and before the top level domain (.net). |
john.doe43@domainsample | The top level domain (.co.uk) is missing. |
Taken from validity.com
Oct 16, 2023 02:00 AM
How can an email field not be validated? That is so basic?!
Jan 19, 2024 06:48 PM
Agreed, I'm going to put in a feature request. I was surprised to find that this was not automatically when putting an email field on a form.
Nov 08, 2024 01:30 PM
Hey there, I just wanted to point out that validating email addresses is very straightforward using our miniExtensions Form. Right out of the box email fields are validated to check for a valid format. Alternatively, you could also set up RegEx validation in a single line text field, for example, which can achieve the same result with more flexibility. ChatGPT is really good at creating the correct RegEx if you just describe the format that you require.