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
Melissa BunchMelissa Bunch 

Community reCAPTCHA Self-Registration Functionality

Hello!

I'd like to preface this with the fact that I have 0 dev knowledge and struggle to understand all this, so feel free to speak to me like I'm 5 if you can help! :D

I'm trying to implement reCAPTCHA v2 onto my Community Self-Registration page. I've gotten pretty far and I'm still having some trouble, but I have two questions regarding it's functionality to start with (screenshot below).
  1. Is there a way to get rid of the Submit button? I don't want the user's to have to fill out the form, check the reCAPTCHA box, then click the reCAPTCHA "Submit" button, then finally click our Register button. I want the reCAPTCHA to be verified when they check the box.
  2. Will I have to update my Site Key regulary? I saw a concern about it breaking weekly from a couple years ago, and while I don't think it's a valid concern anymore, I want to make sure. I have added the necessary Trusted Sites.

For reference, I followed these two resources:
  • https://www.learncommunitycloud.com/s/article/Implementing-reCAPTCHA-in-Community-Cloud
  • http://varasi.com/salesforce/embedding-google-recaptcha-v2-in-salesforce-lightning-component-to-increase-security/

User-added image
SwethaSwetha (Salesforce Developers) 
HI Melissa,

The click of Submit button makes a callback function that is executed when the user submits a successful response.This is required to validate the response and hence it is not possible to get rid of submit button. 

There are options to resize the Recaptcha section based on https://salesforce.stackexchange.com/questions/200380/recaptcha-in-salesforce-lightning-component
 
Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you

 
Yogendra JangidYogendra Jangid
Hi Melissa,
You can refer to the following link which explains how can we have this in our experience sites.
https://inevitableyogendra.blogspot.com/2021/09/introducing-google-recaptcha-in-einstein-bots.html