Integrations · Forms
Validate emails in Gravity Forms
Check the email address in your Gravity Forms forms: when a form is sent, and in the entries you already have. Two plugins do the work:
- email-validation.org – Email Validation for Forms, the WordPress plugin, checks the email field of every Gravity Forms form when it is sent, and stops the statuses you choose (one set of rules for all your forms).
- Email Validation for Gravity Forms, an add-on to it, checks the entries a form already has and keeps the result on each entry, and lets each form have its own rules.
The add-on is not in the WordPress.org plugin directory. You install it from the zip on this page. It is new: it has not yet run on a site with Gravity Forms. If something does not work as described here, tell us.
Before you start
- An API key from the API keys page with "Validate addresses" and, for the entry check, "Bulk lists". A daily credit cap limits what a busy form can spend: Gravity Forms checks fields before its spam filters, so a spam submission can use a credit.
- Gravity Forms 2.5 or later (a paid plugin: Gravity Forms has no free version), WordPress 6.5 or later, PHP 8.1 or later.
Install
- Install the WordPress plugin and set your key under Settings → Email validation.
- Download email-validation-org-gravity-forms.zip. It is built from the add-on's source and holds only the files it needs, in its own folder.
- In WordPress, open Plugins → Add Plugin → Upload Plugin, choose the zip and click Install Now, then Activate. Without Gravity Forms active, the add-on does nothing and says so.
When a form is sent
By default invalid and disposable stop a form, with the message under the email field. If a check cannot be done (our API slow or out of reach, no credits), the form goes through unless you choose "Stop the form"; a check waits at most 10 seconds and is never retried.
To give one form its own rules, open the form and go to Settings → Form Settings → Email validation (email-validation.org):
| Choice | What happens |
|---|---|
| As set under Settings → Email validation (the default) | The plugin's rules, as for every other form. |
| With this form's own rules | The statuses you tick for this form stop it, with this form's message (empty: the plugin's). |
| Not at all | The form is never checked: nothing is sent or charged. |
An address is checked once either way: a form with its own rules is checked by the add-on only. Own rules with no status ticked can stop nothing, so nothing is sent.
The entries you already have
- Go to Forms → Check entry addresses, pick the form and its email field, and press Count the entries. Nothing is sent yet: the screen shows how many entries there are (spam and trash left out) and your balance.
- Tick Use at most N credits and press Check the entries. Each distinct address is charged once; entries without an address, and entries already checked (unless you tick "Also check again"), cost nothing. The list is started only if it needs no more credits than you confirmed.
- The check runs in the background; you can close the page. When it is done, the screen shows the count per status and the credits used, and the form's Entries list shows an Email check column you can filter by.
The result is kept on each entry as entry meta: evorg_email_status (one of the five statuses), evorg_email_reason, evorg_email_checked (the date, UTC), and two more keys for the field checked and the address the result belongs to (a hash, never the address). Read it in code with gform_get_meta( $entry_id, 'evorg_email_status' ). The entry's submitted values are never changed.
If something stops
| What the screen says | What to do |
|---|---|
| The API key was refused | Check the key under Settings → Email validation. |
| The API key may not upload lists | Turn on "Bulk lists" for the key on the API keys page. |
| Not enough credits to start | Add credits, then press Try again: the same list starts, it is not sent again. |
| The list was sent but no answer came | Look under Bulk lists for an "Untitled list" with that upload time before you press Try again. A list that was never started costs nothing. |
| The list needs more credits than you confirmed | Entries were added meanwhile. Press Try again to count and confirm again. |