Google ReCaptcha for Sitecore Forms

Want to protect your forms from spam and abuse? Google’s reCaptcha is your friend and is adopted as the de facto industry standard.

The Sitecore Forms Extensions module now comes with a control to support google reCaptcha.

Configuration

The recaptcha needs to be configured in the sitecore settings.

There are 2 settings to provide: the private and public key.

These keys can be obtained from recaptcha portal.

Error Message

If you want to customize or translate the error message, create a translation in your dictionary for the key “captcha.required”.

Usage

Once configured, the control can be easily added by content editors onto the form.

Just drag and drop the component from the security toolbox onto the form.

That’s it! No further settings are required.

 

14 Responses to “Google ReCaptcha for Sitecore Forms”

Author's gravatar

Hi,

How can I Validate ReCaptcha submit action and assigned to submit button? Do I need to implement submit action for ReCaptcha control?

Best regards.

    Author's gravatar

    Hi Igor, you just need to add your recaptcha keys (public and private) in the sitecore config files during install.
    Once installed, you just need to add the component on the form, there is no need to configure submit actions.

Author's gravatar

Hi Bart,

This is a great extension. Many Thanks!
I integrated Recaptcha in my project and looks good but while submitting the form I get error “An item with the same key has already been added.” in FormBuilder\Form.cshtml. Are you familiar with this error?

    Author's gravatar

    Hi,
    I have the same problem.
    Did anyone solved this?

      Author's gravatar

      I believe you might have solved this issue but for anyone else, if you experienced the same issue, check your field name for each field, all field should have a different name.

Author's gravatar

Hi Bart

We are using your recaptcha with extension module, in IE 11 it is not working as image challenge keeps coming up again and again

In Chrome and Firefox it is working, kindly suggest how to fix in IE 11

Author's gravatar

Hi Bart,
Can you please explain, how to custom error message for this recaptcha.

Thanks in advance !!

Author's gravatar

Hi Arvind,
first of all thanks a lot for the module, is there a way to have multiple ReCaptcha on se same page on sitecore 9.0.1 (i’ve seen that you have added it for version 2.2 (for Sitecore 9.1.x))

Thanks in advance
Davide

Author's gravatar

Hi Bart,

We are using your module for Capthca, but Spams are not stopping.

We are using Sitecore 9.0.2 and Forms Extension Module 1.8.1

Kindly suggest what to do.

thanks
Arvind

    Author's gravatar

    Hi Arvind, there was indeed a bug in the version for 1.x version that allowed bypassing the captcha. This has been fixed in the 2.x version.
    Unfortunatly, I will not be release any more updates for 1.x.
    The module is open source, so if you want to make an update to 1.x to secure this, have a look at the Feature.FormsExtensions.Pipelines.ExecuteSubmit.RecaptchaExecutedValidation class.
    Best Regards

Author's gravatar

Hi bart.verdonck,

I have updated the recaptcha key but still I am getting below when I add captcha to form.

“https://www.google.com/recaptcha/api2/anchor?ar=1&k=my-public-key&am………..

I have restarted the application and everything still this is coming could you please help

Author's gravatar

Hi Bart,

Sorry for above comment you can delete that as that is working.

But I am getting issue which is when I add captcha to in form and add form data source to page the captcha is not getting displayed there on the page could you please help me if I am missing anything.

Leave a Reply