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 me: I'm Paul. A SQSP User for 18 yrs, I've been a Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL, providing high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee fuels my work.

Book paid help with domains: Connect a GoDaddy domain. Connect a Squarespace Domain. Domain assistance

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.