Skip to main content

Hi there, I’ve looked at this thread (Modify form validation to prevent free email domains?) and implemented this script (https://gist.github.com/markwainwright/0c600a808a6477d138b8), but it doesn’t seem to work for Lightbox forms. Please assist, I would really like to use this script for Lightbox lead-pages as well. Thanks!

Hey Bertus! Welcome to the Community! :spinbounce:


I’ve reached out to my colleague @Mark_Wainwright who can provide more insight on this, as he came up with this script originally.


Unless any of the @Unbounce-Experts have any input in the meantime, Mark will reach out shortly!


Hi @Bertus_Schoeman! Thanks for reaching out.


I tested this out and I was able to get it working with a lightbox form.


First of all, make sure you add the script to the Javascripts section of the lightbox that contains the form. The script won’t work if it’s placed on the main page.


Second, make sure you edit the line of the script that starts var field – replace email_address with the actual ID of the form field you wish to add the validation to.


Let us know how you get on!


Hi @Mark_Wainwright,


I couldn’t find a more up to date topic on this. Where does your script need to be placed? Head or body tag? Can this also be placed in the account wide scripts or does it need to be added to every page?


Thanks


We’re still interested in this topic as well!


Hey! I can’t acess this link on github. @Mark_Wainwright . I need  the same thing: no personal emails submissions. Can you help me? thank u

 


Hey @gabriel_soares 👋🏻 Thanks for pointing this out, I’ve reached out to Mark for an updated version, stay tuned!


Hi again @gabriel_soares, Mark recommended the non-webmail email addresses script found in this post. Can you give that a try and let me know if it works for you? 

 


Reply