Google recaptcha

Hi,

I am trying to add Google reCAPTCHA to my survey using an HTML/Text block. I created the Google site key and added the SurveyEngine domain correctly. The widget initially showed a domain error, but after fixing the domain it no longer appears at all in preview or survey pages.

Could you please let me know whether Google reCAPTCHA is supported in SurveyEngine survey pages, and if so:

  • where the script should be placed

  • where the site key should be placed

  • whether server-side validation with the secret key is supported

Many thanks,
Gozde

SurveyEngine supports custom Javascript drop-ins. You’ll need to read the docs of your provider but typically it’s just a single chunk of html code.

In your case you’ll also need to extract the success/failure of the capture. Here’s the workflow

  1. insert a text element
  2. switch to code view for the element - the </> butotn
  3. paste the captch code
  4. read your docs - you’ll need to write some JS code that when the captcha is triggered - it transfers the result to a surveyengine closed question
  5. branch the surveyengine closed question as normal
  6. tidy up - hide the surveyengine elements

The easiest tutorial to adapt is the cookie script code as this does a similar thing - runs some browser code - then updates a surveyenggine elements