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
Guillaume ZeemanGuillaume Zeeman 

Is it possible to implement Google reCAPTCHA in an LWC community page

We are currently creating a LWC community registration page and we want to implement the Googlge reCAPTCHA module. We are unable to use this module because of the locker services, which prevents access to the DOM. 

 

Does anyone perhaps know a method to implement the reCAPTCHA module in an LWC communtiy page?

Suraj Tripathi 47Suraj Tripathi 47

Hi,

You can take references from the below link.

https://salesforce.stackexchange.com/questions/252419/google-recaptcha-v3-implementation-in-lightning-web-component

Please mark it as the Best Answer if it helps you.

Thanks

Yogendra JangidYogendra Jangid
Hi Guillaume,

Following blog might help you how to integrate the google recaptcha in any lightning web component.
https://inevitableyogendra.blogspot.com/2021/09/using-google-recaptcha-v2-in-lightning-web-component.html
you can also refer following guide for how to set up in lightning communities.
https://help.salesforce.com/s/articleView?id=sf.workdotcom_quemgmt_set_up_captcha_markup.htm&type=5 (https://help.salesforce.com/s/articleView?id=sf.workdotcom_quemgmt_set_up_captcha_markup.htm&type=5)

If this helps, please can you mark this as best answer.