Forms
Formstack email validation integration
A snippet you paste into an Embed Code field of your Formstack form checks the email address when the respondent leaves the field, and stops the form when it cannot receive mail or is a throwaway inbox. A small relay you deploy to your own Cloudflare account checks each new submission from the form’s webhook and writes the result into a field of the form.
Read the full setup guideGet an API key
- Setup guide
- A snippet and a relay you download
formId: '5551234',
emailFieldId: '154195740',
browserKey: 'YOUR_BROWSER_KEY',
stop: ['invalid', 'disposable'],At a glance.
- Status
- Setup guide. Not listed on a marketplace yet: you set it up yourself in a few steps, below and in the full guide.
- For
- Teams who collect sign-ups, leads or registrations with Formstack and want to keep addresses that will bounce out of their submissions, or at least see them marked.
- You need
- For the snippet, a browser key: API keys → Create key → “On a public web page”, with your form’s addresses as allowed origins and a daily credit cap. For the relay, an API key with Validate addresses, a Formstack Personal Access Token, a Short Answer field for the result and a Cloudflare account to run the relay in.
- Costs
- 1 credit = 1 validated address, as with any API request. Free: unknown results, API errors, malformed addresses, test addresses on sandbox.email-validation.org, addresses on reserved domains such as example.com and, in a bulk list, repeats of an address (charged once).
- Full guide
- Read the full setup guide
Typical uses.
Stop a bad address at Submit
The snippet checks the address as soon as the respondent leaves the Email field, so by the time they press Submit the answer is usually there, and the form shows your message instead of sending.
See the result on each submission
The relay reads each new submission back from Formstack, checks its Email fields and writes a line such as invalid (no_mailbox), checked and the time into the field you added.
Hear about it elsewhere
The relay can also post each submission’s results, signed, to a URL of yours, with ids and results only unless you ask for the address.
Set it up. 5 steps.
The short version of the full setup guide, which stays the reference when a step does not match what you see.
Download and unzip
Download email-validation-formstack.zip from the guide. It holds formstack-guard.html, relay.mjs and the licence.
Paste the snippet
Drag an Embed Code field onto the form, paste
formstack-guard.htmlinto it and fill in the form id, the Email field’s id and your browser key.Add a status field
Add a Short Answer field for the result and note its id: the number in the form builder’s address while the field is selected.
Deploy the relay
Deploy
relay.mjsto Cloudflare withEV_API_KEY,FORMSTACK_TOKEN,RELAY_TOKENandSTATUS_FIELD_ID, then add a webhook in the form’s Settings → Emails & Actions → Advance Settings with the relay’s address.Test it
On a form that sends that address no email, enter
no_mailbox@sandbox.email-validation.org: the snippet shows its message and the form stays, at no cost.
Good to know.
The snippet stops the form only on a result it has: a slow or failed check, valid and unknown addresses never stop it, and catch_all only if you add it.
The key in the snippet sits in the page, so it must be a browser key: it can only validate addresses, only from the origins you list, up to its daily cap. With any other key the snippet checks nothing.
Formstack has stored a submission when its webhook fires, so the relay tags it rather than refusing it; it writes only the status field and never deletes a submission.
Act on the action rather than the status: spam traps and known complainers are valid with the action remove.
The snippet takes
https://api-eu.email-validation.organd the relayEV_REGION=euto have addresses validated in the EU and only their results stored there.It has not run against a real Formstack account yet: it is built from Formstack’s public documentation and tested against stand-ins in memory. Try it on a test form first.
Connect Formstack.
Test it on our sandbox addresses for free, then on your own contacts.
Updated · Maintained by: Email Validation LLC