Business24 CRM has the ability to import/capture leads from the most popular contact form (and any other customizable forms) for WordPress Contact Form 7 together with the Email Integration feature which is built in Business24 CRM.
The process is very easy, once you configure the contact form to be compatible with the email integration, you will import leads in no time with the fields filled in contact form automatically added for the imported lead.
We recommend you first to read this whole setup article to get the idea how the contact form fields will be mapped and how the leads will be imported in Business24 CRM to get familiar with the steps you need to perform in order to make this config working, then you can move on to configure the full setup.
For the simplicity of this example and setup, we will use a minimal example for Contact Form config with fields Name, Email, Message (see below for more detailed example).
Install Contact Form 7
If you already have Contact Form 7 installed and you are familiar with Contact Corm 7 you can skip this step.
If you haven’t already installed Contact Form 7, you must install the plugin from your WordPress dashboard area, from the left menu navigate to Plugins->Add New and search for Contact Form 7, after you find the Contact Form 7 plugin click on Install and after installation click on Activate.
We assume that you are already familiar how Contact Form 7 works and how you can embed the form into custom page eq. Contact Us, in case you are not, you can read more by clicking here.
Configure Contact Form 7
In this example, we will use the basic Contact Form 7 config which comes with the form after installation.
After you install and activate the plugin from the WordPress admin menu click on Contact->Contact Forms
Chose the form you want to configure and click on the name.
Click on the Mail tab in the contact form to configure the contact form email to be compatible with Business24 CRM.
Add your Business24 CRM integration email configured in Setup->Leads->Email Integration. In new line add eq. Bcc: firstname.lastname@example.org
This is the important part, in this case when a user fills out the form, the contact form plugin will add BCC your leads email integration email and the Business24 CRM CRON job will be able to catch this email and import the lead with the provided fields.
The point here is to wrap all form values and include in the email message/body with:
After the email is sent this field will be populated with the actual field value and will become eq.
You will need to replace LEAD_FIELD with the actual lead field.
Use HTML content type
In Contact Form 7 mail tab check Use HTML Content Type, in this case, the email will be HTML.
Available lead fields
If you are passing a country field, keep in mind that the country must be ID from Business24 CRM database table for countries (tblcountries) or the name Eq. United States (without typos) because Business24 CRM script will compare the country name passed in the message body and find suitable country id from Business24 CRM countries table.
Eq user writes United States, this will work fine, but if a user writes a country name that does not exist in countries table or makes a typo eq. Untited States, Business24 CRM won’t be able to identify the ID of the country from countries table.
In case you want to integrate custom field for a lead, you can use custom_field_ID, Replace the ID with the actual custom field ID which can be found in Setup->Custom Fields.
If you use custom field the email message markup should look like this:
Eq. example for a custom field of type Select in Business24 CRM
Eq. example for a custom field of type Select in Contact Form 7
In the Mail Tab in Contact Form 7 simply add the field tag in the File Attachments Area.
Keep in mind that only attachment extensions allowed in Setup->Settings->General (Business24 CRM installation) will be added while importing the lead.
Full example with more fields
Let’s say our Contact Form 7 have fields:
- Phone number
Contact Form Fields
Our contact form fields config should look like this (you can format it however you like):
Mail Tab Config
Click on the mail tab to configure the email body content.
You can get the available shortcodes of the field values at the top of the Mail Tab Config where it says “In the following fields, you can use these mail-tags”
You can see how all field values are wrapped within div with id=”field_LEAD_FIELD”, the LEAD_FIELD is actually from the available lead fields
In this example the message that user will write in the contact form we are populating the lead description text area, which is suitable for this case.
Keep in mind that the subject won’t be added to the leads section of Business24 CRM because the subject is not suitable for any field that belongs to lead, you can either create custom field or you will be able to view the subject by clicking on the Email Activity tab in the lead modal, click here to check how this will look.
Now when a user fills Contact Form 7 the plugin will add your email integration email as BCC header and this email will be sent too to the email integration email.
The Business24 CRM cron job will read this email and map all fields provided within the email message and import the lead in Business24 CRM leads section.