
How do I make my form only accept .EDU addresses?
Paid accounts have access to add special scripts just for this sort of customization.
Just do the following and it should work.
- Go to your dashboard.
- From your site click "Add Headers & Scripts".
-
In the landing page footer box paste the following and click save header & footer.
<script>
//Only allow .EDU addresses in...
$('#submit').click(function(e){
email_address = $('#email').val().toLowerCase();
if (email_address.indexOf('.edu') == -1)
{
//Can customize the alert text here.
alert("We're sorry, but we're only allowing .edu email addresses at this time");
e.preventDefault();}});
</script>
-
We also recommend changing some of the text on the page in your designer (like the form placeholder) to tell people that only .EDU addresses will be allowed.

