+91 80170 49042 [email protected]

How can I add captcha to Salesforce Web-to-Lead form to prevent spam?

by | Updated on: Apr 28, 2022 | Discussions | 2 comments

Question- Hi, I have a WordPress CRM website and we use salesforce web to lead form on our website for to collect leads but we are fed up with thousand of spams daily via that contact form. Is there any way to solve this issue? We don’t want to remove the web to lead salesforce form – M.Richardson

Answer – 

As per our research, the  possible solutions are –
2. http://wordpress.org/plugins/salesforce-wordpress-to-lead/ (Captcha option is there but not sure with latest WP version)
There are 2 more solutions – (Not recommended though)
  1. via hidden css fields in web to lead form that robots would fill up but humans would not and by that differentiation to protect spam
  2.  Another one is to use conditional fields in the salesforce form for not to use keywords such as drugs/viagra/cialis etc
As per our finding, this is a big problem faced by thousand of users and there is no ready-made /easy solution. Even salesforce has no specific solution for this. Also any captcha plugin can’t be integrated directly this way to salesforce form. In extreme case, you have to use other contact form alternatives.

Update – The solution is here now!

We have found a great solution to this problem now. Find below the steps.

1. Use this WordPress salesforce plugin (You get in-built captcha)

2. For using checkbox or dropdown menus, use the fork version of this plugin from here (copy the salesforce.php file)

3. Visit support forum & here & here to know the syntax to use checkbox or dropdown menus in your salesforce web to lead form

Debajyoti Banerjee is the Founder, Director & CEO of Seven Boats - A leading digital marketing agency & digital marketing training institute in India since 2011. He is a Google & LinkedIn Certified Digital Marketer & Trainer, Brand Strategist, Consultant & Entrepreneur. B. Tech in computer engineering & post graduate diploma in Marketing, Debajyoti has 18+ years of domain experience and successful track records in digital marketing services & digital marketing training with 500+ clients & 100K+ students in 165+ countries. He has been invited & felicitated by 25+ Top B Schools & universities including London Business School, AICTE ATAL FDP, UGC-HRDC, IIM Shillong, IIM ROHTAK, IIT KGP, IIT Guwahati, Calcutta University, Ranchi University, St. Xavier’s, Brainware, Techno India, JIS Group, Jaypee Group, Shikshayatan Foundation, IIEST Shibpur, Bhavan’s, ICFAI Business School, GITAM Deemed University, Swami Vivekananda Group of Institutions & many more. He has been awarded with more than 20 national awards and he has received notable media coverage. Learn more



  1. Elsy A Calkins

    Thank you for the tutorial, it’s useful and very clean ;)


Submit a Comment

Your email address will not be published. Required fields are marked *

Get a call back
Download Brochure
WhatsApp Chat