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.

Prevent generic email addresses (don't accept Gmail, Yahoo, etc addresses)

  1. How can I make Gravity Forms not accept email addresses with gmail.com, yahoo.com, hotmail.com, etc? Thanks!

    Posted 12 years ago on Wednesday October 31, 2012 | Permalink
  2. You can use the gform_validation filter and return an error is your email field contains any of those domains.

    http://www.gravityhelp.com/documentation/page/Gform_validation

    Posted 12 years ago on Wednesday October 31, 2012 | Permalink
  3. Great, guess its good a time as ever to dig into the GF API :)

    Posted 12 years ago on Wednesday October 31, 2012 | Permalink
  4. The gform_validation hook is not difficult to use. The regex you use to filter out certain domains will be more complex :-) If you need help or get stuck just let us know.

    Posted 12 years ago on Wednesday October 31, 2012 | Permalink