Tutorial: Adding reCAPTCHA to the Job/Resume Submission Form

Using a captcha can help prevent spam. One of the best solutions out there is the Google ReCaptcha – it’s free and not too intrusive during form submission.

A significant number of your users can now attest they are human without having to solve a CAPTCHA. Instead with just a single click they’ll confirm they are not a robot.

This tutorial will show you how to set it up for the job submission form.

↑ Back to Top Getting Keys

First you need to register on the reCaptcha website. You’ll need to name your site and enter it’s URL first:

Getting your keys

You will then be provided with a site key and a secret key. Keep these for later.

↑ Back to Top It’s snippet time

Next we need to implement the code – this includes:

  1. Adding the reCaptcha script to the page
  2. Adding the reCaptcha field to the form
  3. Checking the posted reCaptcha field is valid

To do this, use the following code (you can add the code to your theme functions.php file, or a custom plugin). Ensure you replace the SITE and SECRET keys with your own or this won’t work.

Thats it! Now when posting a job you should see this field:

The field

When it isn’t filled in correctly the user will be notified:

The notice

↑ Back to Top Doing the Same for Resume Submissions

If you also want to add the same field to the resume submission form, just use the above code with this small addition:

↑ Back to Top Doing the same for Applications

To add the same field to the application form added by the Applications plugin, add the above code with this small addition:

Thats all there should be to it!