Gravity Form Email Validation by Domain

Scenario:

Needed to allow ONLY email addresses from a specific client domain to be entered into a Gravity Form.

NOTES: Form ID = 2, Field ID = 9
Used strtoupper to allow domain.com as well as DOMAIN.COM.

Here’s the validation script:

 

Leave a Reply

Your email address will not be published. Required fields are marked *