formcarry supports reCAPTCHA v2 Checkbox and reCAPTCHA v3. reCAPTCHA v2 Invisible is not supported.
Get Your reCAPTCHA Keys
1
Open the Google reCAPTCHA Admin Console
Go to the Google reCAPTCHA Admin Console and sign in with your Google account.
2
Register a new site
Click + to register a new site. Fill in your site label, select your reCAPTCHA type (v2 Checkbox or v3), and add your domains. Include
localhost if you need to test locally.3
Copy your keys
After clicking Submit, Google generates two keys:
- Site Key — used in your HTML markup
- Secret Key — pasted into formcarry to enable server-side validation
Using reCAPTCHA v2 (Checkbox)
1
Add the reCAPTCHA script to your page
Paste the following script tag inside your
<head>:2
Add the reCAPTCHA widget to your form
Place the
g-recaptcha div inside your form, replacing YOUR_SITE_KEY with the Site Key from the Admin Console:3
Copy your Secret Key
Return to the Google reCAPTCHA Admin Console and copy the Secret Key for your site.
4
Enable reCAPTCHA in formcarry
In the formcarry dashboard, open your form’s Settings, enable the Google reCAPTCHA toggle, paste your Secret Key into the field, and click Save.
Using reCAPTCHA v3
1
Add the reCAPTCHA v3 script
Add the v3 script to your
<head>, passing your Site Key as the render parameter:2
Add a hidden input to your form
Add a hidden input that will hold the reCAPTCHA token formcarry reads on submission:
3
Execute reCAPTCHA and populate the hidden input
Use JavaScript to request a token from Google and write it into the hidden input before the form is submitted:
4
Enable reCAPTCHA in formcarry
Copy your Secret Key from the Google reCAPTCHA Admin Console, open your form’s Settings in formcarry, enable the Google reCAPTCHA toggle, paste the Secret Key, and click Save.