PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Limit the domains in email addresses

  1. I am working on a form that I would hopefully be able to limit the emai address entry so no gmail, yahoo or hotmail domains can be used. I would only want corporate domains. Is it possible to limit that?

    Posted 14 years ago on Monday December 6, 2010 | Permalink
  2. Hi Scott, this would require a little custom code but is possible using the gform_validation hook. For technical details on this hook refer to this document. The general concept is to check the value entered for the email address for 'yahoo.com', 'hotmail.com', or 'gmail.com'. If found, you can return a custom validation message so the user will know the issue with their submission.

    Posted 14 years ago on Monday December 6, 2010 | Permalink
  3. Thank you very much. I will pass the info along to the developer that will be doing the custom coding!

    Posted 14 years ago on Monday December 6, 2010 | Permalink
  4. Scott,
    Did you ever get a solution to this? If so, would you be willing to post it. I'm looking to add the same filter but am a totally new to php.

    Thanks!

    Posted 13 years ago on Wednesday June 1, 2011 | Permalink
  5. Here is a solution for those looking to accomplish this:

    http://gravitywiz.com/banlimit-email-domains-for-gravity-form-email-fields/

    Posted 11 years ago on Saturday March 2, 2013 | Permalink

This topic has been resolved and has been closed to new replies.