Note32

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.

  1. Go to your dashboard.
  2. From your site click "Add Headers & Scripts".
  3. 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>

  4. 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.

Need more signups?

FREE Ebook!

Learn how to build your audience!

6-steps-ebook-cover_220
Recent Blog Posts

Loading blog posts...

Read More »