Quantcast
Viewing all articles
Browse latest Browse all 9076

reCAPTCHA not working

Hello

I am attempting to add reCaptcha to a form on our episerver site. I have done the following:

  • installed nuget package for Episerver.Forms.Samples - this allows the widget for recaptcha to now show as an option in cms
  • registered w/ google for the site key and secret key 
  • added script link in my root cshtml file 
  • <scriptsrc="https://www.google.com/recaptcha/api.js"asyncdefer>
  • When I save the reCaptcha form element w/ site key and secret key added it doesn't give me any error. However the form has no "I'm not a robot" on it. When I attempt to save the form, it says invalid captcha value. Console error says, missing site key (api.js). I notice that in the source view, the site key is actually displaying as epiforms-sitekey instead of just sitekey. 

Is there additional javascript I am to include in my solution beyond just including the reference to googles api.js? how can I get the recaptcha element I drop on my form to actually render the "I'm not a robot" message as desired?

currently the forms.samples package is version 3.5.0 and episerver.forms is 4.27.0

thank you for any assistance!


Viewing all articles
Browse latest Browse all 9076

Trending Articles