Vtiger Webforms – Enabled captcha to prevent SPAM – Tutorial

One interesting feature of Vtiger CRM is the possibility to create simple forms that, after adding those to your website,  the form responses will create new records in your CRM. This feature is called Vtiger Webforms and can be found in the settings page of your CRM

If you hate spam as much as we do, you have notice that if you embed one of this forms on your website a lot of spam will start to show up in your CRM. The easiest way to solve this is enabled captcha support in your vtiger webforms.

What is captcha?

reCAPTCHA is a free service from google that helps you protect your website from spam and abuse. reCAPTCHA uses an advanced risk analysis engine and adaptive CAPTCHAs to keep automated software from engaging in abusive activities on your site. It does this while letting your valid users pass through with ease.

Essentially, reCAPTCHA will add this validation to you forms that I’m sure you have seen before.

vtiger webforms captcha

This will prevent any automated script to fill in your webform and it’s something that most of your clients has already seen in the past.  I guess that solving these captchas is now a standard piece of every form on the web.

How to enable CAPTCHA in Vtiger Webforms?

Adding CAPTCHA support to your forms is a simple three step process.

Register in captcha website your website URL

Just go to  https://www.google.com/recaptcha/admin and register  your  URL, it’s your website URL and not your CRM with a google account.

Adding new API Keys to Vtiger

Add the two API Key you just got from the captcha site to the file located at:

/modules/webforms/config.captcha.php

The file has two lines so, you will find the right place. Don’t worry.

Add the reCAPTCHA field to your webforms.

In webform’s edit view, check the checkbox that enabled captcha support for the webform.

vtiger webforms setting add captcha

You are Done!

Thanks to this simple trick you will be avoiding a lot of SPAM into your vtiger crm.