Google reCAPTCHA is not working in Episerver Form

 

Hi,

 I am working in a project where we are using Episerver.Forms with version 4.11.0.0.

 I have to implement google reCAPTCHA in one of the form. For that I referred https://github.com/episerver/EPiServer.Forms.Samples/ .

 I have created the specified files and tried but it won't work. So I tried other way by installing the EpiServer.Forms.Samples nuget package. But here also I am facing some issues.

 Can we implement google reCAPTCHA by using the EpiServer.Forms.Samples nuget package only? Or do we need to add any extra code other than this nuget installation?

#195746
Aug 07, 2018 10:45
nitinanand
Member since: 2017
 

Hi Anju

Did you get help in this?

I read you have already the recaptcha element in project from the samples package you installed. 

To implement this, so recaptcha element is visible in your form, you need to add secret and site keys from you google account. You can register site and get keys here https://www.google.com/recaptcha/admin (its free as of now)

This should be added individually on each recaptcha element you use. 

This can later be easily programmed to get from code so you skip filling those keys. Follow this to fix https://devblog.gosso.se/2016/09/google-recaptcha-and-episerver-forms/

You dont need to do anything else and this should work now.

good luck

#200134
Jan 03, 2019 9:52