Integrations · Forms
Validate emails in Zoho Forms
Check the email address on a Zoho Forms form before the form is submitted. The respondent types an address and clicks Check; a small check endpoint you deploy to your own Cloudflare account checks it with our API, and Zoho Forms fills three fields from the answer: two that a Deny Submissions rule checks (so an invalid or disposable address, or one edited after its check, cannot be submitted), and one saved with the entry, so every entry carries its address's status. Download it: email-validation-zoho-forms.zip holds relay.mjs (the endpoint) and the MIT licence.
How it works, and its limits
Zoho Forms documents no step that asks another service before it stores an entry, and its webhooks are sent once an entry is received. Its Prefill-Webhook field is the documented way to call a service while the form is filled in, so the check runs there:
- The form's Email field is a Prefill-Webhook field. The respondent clicks its Check button.
- Zoho Forms posts the address, from its own servers, to
https://<your endpoint>/<RELAY_TOKEN>. - The endpoint checks it with one call to our API and answers five keys:
decision(acceptorblock),status,reason,result(for exampleinvalid (no_mailbox)) andchecked(the address it checked). - Zoho Forms puts
decisioninto an Email check field,checkedinto a Checked address field andresultinto an Email validation status field. A Deny Submissions rule refuses the submission while Email check isblockor empty, or while Checked address is not the address in the Email field, with your message.
| Status | Decision |
|---|---|
valid, catch_all, unknown | accept |
invalid, disposable | block |
not_checked: our API did not answer, or refused the key (no credits left, the key's daily cap) | accept, so the form keeps working (ON_ERROR=block to refuse) |
not_checked with the reason invalid_request: not something our API can check | block |
Limits: only the form's own Submit is held back (an entry added through Zoho's API or an import is not checked), and the respondent sees the status in the form. Deny Submissions rules and the Advanced Rules that compare two fields are on Zoho Forms' paid plans, as is the Prefill-Webhook field, whose searches count against Zoho's monthly limit.
What you need
- An API key of ours from the API keys page with the permission Validate addresses, and a daily credit cap: each click on Check is one check. The endpoint reuses a verdict for an hour, so a second click on the same address costs nothing.
- A Zoho Forms plan with Prefill fields and Deny Submissions (any paid plan).
- A Cloudflare account to run the endpoint in (and
npx wranglerif you deploy it from a terminal).
Deploy the endpoint
From the unzipped folder:
npx wrangler deploy relay.mjs --name ev-zoho-forms-check --compatibility-date 2026-10-01
npx wrangler secret put EV_API_KEY --name ev-zoho-forms-check # our API key, with Validate addresses
openssl rand -hex 32 # a new secret for the endpoint's address
npx wrangler secret put RELAY_TOKEN --name ev-zoho-forms-check # paste that secretNo terminal? In the Cloudflare dashboard, Workers & Pages → Create → Create Worker, name it ev-zoho-forms-check, Deploy, then Edit code: replace the starter code with the whole of relay.mjs and Deploy. Add EV_API_KEY and RELAY_TOKEN as Secret variables under Settings → Variables and Secrets. For RELAY_TOKEN without a terminal, use your password manager's generator: 32 or more letters and digits.
RELAY_TOKEN must be at least 32 letters, digits, - or _. Optional settings (--var NAME:value, or Text variables in the dashboard): EV_REGION (eu to have addresses validated in the EU and their results stored there), BLOCK_STATUSES (the statuses that block, default invalid,disposable; add catch_all to be stricter), ON_ERROR (block to refuse the submission when no check could be made) and EMAIL_PARAM (another key than email in the request body).
Set up the form
- Three status fields. In the form's Builder, add three Single Line fields,
Email check,Checked addressandEmail validation status, and in each one's properties set Visibility to Disable Field (shown, not editable). Prefill Mapping only picks fields already on the form, so they come first. - The Email field. Open Prefill in the fields panel and drag Prefill-Webhook onto the form. Field Configuration: type Email and your label.
- Webhook Settings. Webhook URL
https://ev-zoho-forms-check.<your-subdomain>.workers.dev/<RELAY_TOKEN>, method POST, Authorization Type General, Request Body JSON:{"email": "${zf:<your Email field>}"}, with the Prefill-Webhook field inserted as the value. Add no URL parameters: the address stays out of URLs and logs. - Test & Verify. Enter
no_mailbox@sandbox.email-validation.org(test addresses cost nothing) and run the test: the answer showsdecision,status,reason,resultandchecked. - Prefill Mapping. Choose Field for each of the three fields and map
decisionto Email check,checkedto Checked address andresultto Email validation status, then Save. In the Prefill-Webhook field's properties, set the search icon style to Button with the Button LabelCheck. - Deny Submissions. Rules → Deny Submissions → Configure Now, and switch to Advanced Rules (comparing two fields needs them). Deny Submission If Email check Is
blockOR Email check Is Empty OR Checked address Is Not the Email field (a Field-to-Field Comparison), with a message such as "Click Check next to your email address, or use another address." The values are lowercase, and the rules are case-sensitive. - Try it in the live form, on a test form with no autoresponder email:
no_mailbox@sandbox.email-validation.org, Check, then Submit: your message shows and nothing is stored. Then checkaccepted@sandbox.email-validation.org, change the address and submit: refused too. Test addresses receive no mail, so never let a form that sends an autoresponder accept one.
Who can call the endpoint
Zoho Forms signs nothing, so the secret part of the endpoint's address keeps others out: keep it like a key. Zoho calls it from its servers, so respondents never see it; anyone who can edit the form's Prefill-Webhook settings can. Anything sent to another address gets 401 and costs nothing; a body that is not JSON, or without the email key, gets 400. The endpoint logs one line per check (the decision, status, reason and request id), never an address or a key.
It has not run against a real Zoho Forms account yet: it is built from Zoho Forms' public help pages and tested against the requests they describe. Try it on a test form first.