function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Margaret FleischakerMargaret Fleischaker 

ReCaptcha in 'Create Case Form' not displaying correctly

I'm using the 'Create Case Form' component in a lightning community page, and I've enabled reCaptcha for it. I've verified by site keys are correct, but the reCaptcha isn't displaying properly on the page. I'm also not getting any sort of error message (even if I put in bogus keys). Any ideas what may be going wrong? Could it be related to the fact that I'm trying to use reCAPTCHA v2?

What I'm seeing:
User-added image

What I would expect to see (more or less)
User-added image
Best Answer chosen by Margaret Fleischaker
SandhyaSandhya (Salesforce Developers) 
Hi,

As per below link I think version 2 is not supported.

https://success.salesforce.com/ideaView?id=0873A000000TuKAQA0
 
Refer below link which has sample code for recaptcha in custom lightning component.

http://www.rightitservices.com/pt/recursos/item/1319-google-recaptcha-v2-in-salesforce-custom-lightning-component
 
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
                                             
Best Regards
Sandhya
 
 

All Answers

SandhyaSandhya (Salesforce Developers) 
Hi,

As per below link I think version 2 is not supported.

https://success.salesforce.com/ideaView?id=0873A000000TuKAQA0
 
Refer below link which has sample code for recaptcha in custom lightning component.

http://www.rightitservices.com/pt/recursos/item/1319-google-recaptcha-v2-in-salesforce-custom-lightning-component
 
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
                                             
Best Regards
Sandhya
 
 
This was selected as the best answer
Sarah BalsamelloSarah Balsamello

Hello,
Was this able to be fixed? I am currently trying to add a reCAPTCHA to the "Create Case Form" and I'm getting the same issue.
 

Thank you!