reCAPTCHAImproved in 5.18+
Freeform can load reCAPTCHA and verify submissions with Google in all editions. Enterprise API verification requires 5.18+. Invisible v2 requires Legacy setup.
For existing integrations, keep Setup → Legacy and your current keys, even if Google has moved them to Cloud. See Google's migration guidance.
Setup Instructions
Choose Setup:
- Google Cloud uses the Enterprise API. For a new setup, use a site key, Google Cloud project ID, and Google Cloud API key.
- Legacy uses your existing site key and secret key, including keys managed in Google Cloud.
Choose the Captcha Type that matches your Google key:
- Score-based checks a risk score on submission without a checkbox or puzzle.
- Invisible may show a puzzle on submission. Available with Legacy only.
- Checkbox shows a checkbox and may ask the visitor to solve a puzzle.
Enter your credentials. See the key instructions below if you need them.
Set Enabled by default and click Save.
In the form builder, open Integrations → Captchas → reCAPTCHA. Enable the integration, review its settings, and save the form.
Submit a test entry on your website.
Changing Captcha Type in Freeform does not change your Google key. Their types must match.
Setup help and settings
Behavior & Overrides
Disable CAPTCHA in a template with disable: { captchas: true } in the
Form query. For manual token generation,
choose Custom JavaScript and follow the instructions above.
Manual PlacementNew in 5.7+
To position a visible reCAPTCHA v2 Checkbox yourself, see Captcha Placement.
Add Attributes to WrapperNew in 5.1+
Add attributes to Freeform's Captcha wrapper:
- Template Code
- Output
{{ form.render({
captchas: {
class: ["custom-class", "another-class"],
"data-test": true,
}
}) }}
// truncated for example
...
<div class="custom-class another-class" data-test data-freeform-recaptcha-container>
<div class="g-recaptcha">
...