Sitecore-Forms-Extensions icon indicating copy to clipboard operation
Sitecore-Forms-Extensions copied to clipboard

Sitecore 9.3 reCaptcha is not visible in forms

Open prasanna1579 opened this issue 3 years ago • 4 comments
trafficstars

We have installed Sitecore Forms Extensions 3.0 for Sitecore 9.3 for reCaptcha. We added the reCaptcha in one of the Sitecore form. We followed the steps you provided. Like created a config file with private key and public key and added the patch file to App_config/Environment folder.

We tried running the form and the reCaptch is not rendered. The console is showing an error saying "reCAPTCHA couldn't find user-provided function: loadReCaptchas"

Expected behavior The reCaptcha should render on Sitecore form and work properly

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows
  • Browser : Chrome

Please help us if we need to do anything?

Thanks in advance, Prasanna Kumar

prasanna1579 avatar Jul 09 '22 07:07 prasanna1579

@bartverdonck , can you please provide any solution for this? It is urgent and we are unable to find the fix for this.

prasanna1579 avatar Jul 10 '22 06:07 prasanna1579

I've been using it without issue so it must be a problem with your code / config.

markgibbons25 avatar Jul 10 '22 23:07 markgibbons25

Hi @markgibbons25, I don't think there is no code involved after using this extension. We have installed the extension and added a config file with private key and public key in App_Config/Environment folder as suggested in the article. Can you please suggest?

prasanna1579 avatar Jul 12 '22 04:07 prasanna1579

Hi, having the same issue with sitecore 9.3, seems the new package contains different Recaptcha.cshtml without adding the script where loadReCaptchas defined: @{ var fieldId = Html.IdFor(m => Model.CaptchaValue); Html.AddScript(ScriptStore.ValidateScriptKey, new MvcHtmlString("<script src="/sitecore%20modules/Web/ExperienceForms/scripts/formsextensions.validate.js">")); }

arpadgal avatar Sep 23 '22 09:09 arpadgal