Jump to content

How to block form submissions from free email domains

Recommended Posts

Site URL: https://www.griduk.com/contact

I want to be able to put an email validation check into my forms so that I can ensure any form submissions are from work email addresses and not '@gmail.com' etc.

How can I do this? I assume I will need some custom code to place in the code injector within Squarespace's back end? 

Link to comment
  • 6 months later...
On 4/9/2020 at 2:09 PM, Beni said:

I want to be able to put an email validation check into my forms so that I can ensure any form submissions are from work email addresses and not '@gmail.com' etc.

It is possible to block selected domains with some JavaScript, added through Code Injection. The exact code will depend on the specifics of the form and the addresses that you want to block. The list of free email domains is long and constantly changing so it will be difficult to "block form submissions from free email domains" as you asked in your question.

Can you explain WHY you want to block these? There may be better ways to achieve your required outcome.

About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.
If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too.

Link to comment
  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.