ActiveCampaign Forum

Restricting Free Emails (Gmail, Hotmail, etc) from Submitting on Forms

I’m hoping this is the right place to get some help and insight. I’m trying to block submissions on some specific ActiveCampaign forms from non business emails. E.g. we would not accept submissions from,,, etc.

ActiveCampaign support told me I’d have to build it into the HTML of the form and then embed it on the page.

I was thinking a JS snippet could do a pre submit validation

script type=“text/javascript”>
var email = $(’#Email’).val();
var reg = /^([\w-.]+@(?!!!!!!!!!![\w-]+.)+[\w-]{2,4})?$/;

But it’s not working very well.

Has anyone done something like this before?


1 Like

Hi - I’m interested in this topic, too - does anyone have a solution for this? Thanks -

Hello, I am also trying to do this with no luck. I’ve been trying various snippets of code but not sure if I’m even putting them in the right place.