Enabling reCAPTCHA for Forms
Forge forms support Google reCAPTCHA v3. It runs in the background when someone submits. There is no checkbox, no widget to place in your HTML, and you do not add Google’s script yourself.
Step 1: Create a reCAPTCHA v3 key
- Open the Google reCAPTCHA Admin Console
- Register a new site
- Choose reCAPTCHA v3 — not v2, not “I’m not a robot” Checkbox, not Enterprise
- Add every hostname that will serve the form, including your Forge hostname (for example
yoursite.getforge.io) and any custom domain - Accept the terms and submit
- Copy the Site Key and Secret Key
A v2 key will not work.
Step 2: Turn it on in Forge
The form must already exist from a deploy (see About Forms).
- Open the site in the Forge dashboard
- Go to the Forms tab and select the form
- Enable reCAPTCHA
- Paste the v3 site key and secret key
- Save
Step 3: Redeploy
Enabling reCAPTCHA in the dashboard does nothing until you deploy again. After you change keys, deploy again.
What you should see
- No “I’m not a robot” checkbox
- Google’s small reCAPTCHA badge may appear in the corner
- A real visitor can submit as usual
- Missing or invalid tokens are rejected by the API (the submission is not stored)
Troubleshooting
grecaptcha is not defined
- The key is v2, Enterprise, deleted, or otherwise not a classic v3 site key — create a new v3 pair
- The hostname is missing from the key’s allowed domains
- You enabled reCAPTCHA but have not redeployed since
- The Google script is blocked (privacy extension, network filter)
Submission fails with a captcha error
- The secret key does not match the site key
- The form was not redeployed after enabling reCAPTCHA, so no token is sent
Do not do this
These do not exist in Forge and will not protect the form:
- reCAPTCHA v2 (“I’m not a robot” checkbox)
- A
data-forge-recaptchaattribute — it is ignored - A
g-recaptchawidget, theme, or size options - Loading
api.jsyourself or callinggrecaptchain your own script - reCAPTCHA Enterprise keys with the classic
api.jsendpoint
Keep the secret key in the Forge form settings only. Never put it in your site HTML.
Ask AI About This Page
Get AI-powered answers about this topic. Ask any of these models with full context about Forge documentation to help you understand concepts, troubleshoot issues, and find related resources.
Ask Forge AIJoin the Discussion
Have questions or want to share your experience? Join our community discussion to connect with other developers and get help from the Forge team.
Visit Forum Discussion