Documentation, Reference Materials and Tutorials for WPForms
Want to stop spammers from filling out your forms? Google’s reCAPTCHA allows you to add human verification technology to your forms. WPForms makes it super easy to add reCAPTCHA to your forms.
In this article, we will show you how to set up and enable the built-in reCAPTCHA integration in WPForms.
Generating reCAPTCHA Keys in Google
To get started, log into your WordPress site and go to WPForms » Settings. Then, click on the reCAPTCHA tab.
ReCAPTCHA is a free service provided by Google. There are two versions of reCAPTCHA available for your forms:
v2 reCAPTCHA: The user must check a box to confirm that they are human.
In the settings, go ahead and select the Type you’d like to use.
Next, you’ll need to set up reCAPTCHA in your Google account to get the required keys. You can easily generate the site key and secret key for your site by clicking on the either of the following links: v2 reCAPTCHA or Invisible reCAPTCHA.
Either link will take you to corresponding reCAPTCHA website. You’ll need to click on the Get reCAPTCHA button in the upper right corner to get started.
After clicking this button, you’ll be asked to sign into your Google account. Upon login, you will then be redirected to a page where you can register your site for either version of reCAPTCHA.
On this form, you’ll need to enter the name of your website in the label field. This is for your own use so that you can identify the website if you ever need to get the keys again.
Next, you’ll have the option to select which type of reCAPTCHA you’d like to use. Selecting a reCAPTCHA type will display two additional fields to complete: Domains and a checkbox for a terms of service agreement.
When you’ve completed this form, go ahead and click on the Register button.
After registering, you should see a page with the keys for your website.
You’ll need to copy the Site Key and Secret Key. Then switch back to your WordPress site to paste these keys into their corresponding fields.
Be sure to remember to click on the Save Settings button at the bottom of this page to store these changes.
Adding reCAPTCHA to a Form
Now that you’ve set up your reCAPTCHA keys, you’ll be able to add reCAPTCHA to any of your WPForms.
To do this, go ahead and create a new form or edit an existing form.
Once you’ve opened the form builder, go to Settings » General and check the box labeled Enable Google reCAPTCHA (v2) or Enable Google invisible reCAPTCHA.
The last step is just to click on the Save button to store changes your form.
That’s it! You can now add reCAPTCHA to any of your forms for added spam protection.
Next, would you like to find out how to customize automatic notification emails for your forms? Be sure to check out our notifications tutorial for details on how to email the person who submitted the form, add a header image, and more.