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
Vandana Rattan 4Vandana Rattan 4 

Web to lead with recaptcha not working

I have generated a Web to Lead form with reCaptcha in Sandbox. It submits fine to the return URL but is not generating any leads. I tried to debug using <input type="hidden" name="debug" value=1> and I can see the g-recaptcha-response: coming with a value. Why are leads not getting generated in Sandbox though?

Thanks,
Vandana
NagendraNagendra (Salesforce Developers) 
Hi Vandana,

Sorry for this issue you are encountering.

May I suggest you please check with below links which might help you further. Hope this helps.

Kindly mark this as solved if it's resolved.

Thanks,
Nagendra
 
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Vandana,

May I suggest you please check the below link for reference. hope it helps.

Please mark it as best answer if the information is informative.

Thanks
Rahul Kumar
Vandana Rattan 4Vandana Rattan 4
Hi Nagendra/Rahul,

Thanks for replies. I have had a look at the URLs you have shared. But am still unable to fix the issue. Can I ask how can I test a Web to Lead form with recaptcha? Do I need to host it on the domain which was used to create captcha? What will happen if I just open the HTMl in Chrome and try to submit?

Regards,
Vandana