Before you start / requirements
In order to add a reCAPTCHA to your form, you first need to do the following:
- If you haven't already done so, install the Form Tools API. To get the latest version of the API either do a standard upgrade by clicking on the "Check for Updates" link in Form Tools, or visit the API main page.
- Visit the reCAPTCHA site here and sign up for an API key pair.
- Once you've created an account you register the domain(s) where you're using the service. Since the API only runs on the same server as your Form Tools installation, you'll only need to set up the one domain. You will need to choose the reCAPTCHA V2 option.
- Tip: if you're developing locally, you can enter both localhost and 127.0.0.1 in the Domains section.
Once it's set up, reCAPTCHA will generate two keys for you: a site key and a secret key. Add those
two values to your Form Tools global/config.php
file, like so:
(replace the x's and y's with your own keys).
Your form page need to be a .php file (or whatever file extension is used for PHP on your server).