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
Jayanth ThathapudiJayanth Thathapudi 

Web to Lead is allowing to submit without captcha

We have implemented Web to Lead and enabled google captcha. Also, it's required in Salesforce.

When it is deployed to the website, users are able to submit the form without checking the 'I am not a robot' button without showing an error. In this case, Leads are not coming to Salesforce, but we are missing the data as the user assumes the form is submitted.
SwethaSwetha (Salesforce Developers) 
HI Jayanth,

> Are you following the implementation steps mentioned in https://www.biswajeetsamal.com/blog/salesforce-web-to-lead-form-with-google-recaptcha/ ?

> Also, in the Web-to-Lead settings, make sure the "Require reCAPTCHA Verification" checkbox is selected. This ensures that users need to complete the reCAPTCHA verification before submitting the form.

> And, when registering for reCAPTCHA with Google, make sure you provide the correct domain name that will host your Web-to-Lead form. If the domain name is not registered or does not match, the reCAPTCHA may not work properly and could result in form submissions without completing the verification.

Related: https://developer.salesforce.com/forums/?id=9060G000000I5VwQAK

https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000A8z5QSAR

If this information helps, please mark the answer as best. Thank you
Jayanth ThathapudiJayanth Thathapudi
Swetha, Thanks for the response. I have followed the same steps but user is able click the submit button with check box and it is redirecting to other page without error message. Thanks, Jay
SwethaSwetha (Salesforce Developers) 
@Jay, Can you inspect the browser console for any JavaScript errors that may be occurring when the form is submitted. These errors could provide insights into why the reCAPTCHA verification is not being enforced.