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?
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?
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.
Thank you very much. I will pass the info along to the developer that will be doing the custom coding!
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!
Here is a solution for those looking to accomplish this:
http://gravitywiz.com/banlimit-email-domains-for-gravity-form-email-fields/