{"version":"1.0","provider_name":"My CMS","provider_url":"https:\/\/help.xodox.in\/pt","author_name":"help-xodox","author_url":"https:\/\/help.xodox.in\/pt\/author\/help-xodox\/","title":"Import Leads From WordPress Contact Form 7 - My CMS","type":"rich","width":600,"height":338,"html":"<blockquote class=\"wp-embedded-content\" data-secret=\"MFLINUY13G\"><a href=\"https:\/\/help.xodox.in\/pt\/docs\/import-leads-from-wordpress-contact-form-7-2\/\">Import Leads From WordPress Contact Form 7<\/a><\/blockquote><iframe sandbox=\"allow-scripts\" security=\"restricted\" src=\"https:\/\/help.xodox.in\/pt\/docs\/import-leads-from-wordpress-contact-form-7-2\/embed\/#?secret=MFLINUY13G\" width=\"600\" height=\"338\" title=\"&#8220;Import Leads From WordPress Contact Form 7&#8221; &#8212; My CMS\" data-secret=\"MFLINUY13G\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" class=\"wp-embedded-content\"><\/iframe><script>\n\/*! This file is auto-generated *\/\n!function(d,l){\"use strict\";l.querySelector&&d.addEventListener&&\"undefined\"!=typeof URL&&(d.wp=d.wp||{},d.wp.receiveEmbedMessage||(d.wp.receiveEmbedMessage=function(e){var t=e.data;if((t||t.secret||t.message||t.value)&&!\/[^a-zA-Z0-9]\/.test(t.secret)){for(var s,r,n,a=l.querySelectorAll('iframe[data-secret=\"'+t.secret+'\"]'),o=l.querySelectorAll('blockquote[data-secret=\"'+t.secret+'\"]'),c=new RegExp(\"^https?:$\",\"i\"),i=0;i<o.length;i++)o[i].style.display=\"none\";for(i=0;i<a.length;i++)s=a[i],e.source===s.contentWindow&&(s.removeAttribute(\"style\"),\"height\"===t.message?(1e3<(r=parseInt(t.value,10))?r=1e3:~~r<200&&(r=200),s.height=r):\"link\"===t.message&&(r=new URL(s.getAttribute(\"src\")),n=new URL(t.value),c.test(n.protocol))&&n.host===r.host&&l.activeElement===s&&(d.top.location.href=t.value))}},d.addEventListener(\"message\",d.wp.receiveEmbedMessage,!1),l.addEventListener(\"DOMContentLoaded\",function(){for(var e,t,s=l.querySelectorAll(\"iframe.wp-embedded-content\"),r=0;r<s.length;r++)(t=(e=s[r]).getAttribute(\"data-secret\"))||(t=Math.random().toString(36).substring(2,12),e.src+=\"#?secret=\"+t,e.setAttribute(\"data-secret\",t)),e.contentWindow.postMessage({message:\"ready\",secret:t},\"*\")},!1)))}(window,document);\n<\/script>","description":"Xodox 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 Xodox 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 Xodox 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. Prerequisite for this setup is to have previously configured properly working lead email integration in Xodox CRM, click here to read more how to configure. For the simplicity of this example and setup, we will use a minimal example for Contact Form config with fields Name, Email, Message&nbsp;(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\u2019t already installed Contact Form 7, you must install the plugin from your WordPress dashboard area, from the left menu navigate to Plugins-&gt;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-&gt;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 Xodox CRM. It\u2019s highly recommended always to include the email field in the message and Reply-To header in the Additional Headers section with the merge fields [your-email] Additional Headers Add your Xodox CRM integration email configured in Setup-&gt;Leads-&gt;Email Integration. In new line add eq.&nbsp;Bcc: yourleadsintegrationemail@example.com Make sure that the Reply-To header is set as shown in the image. 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 Xodox CRM CRON job will be able to catch this email and import the lead with the provided fields. Message Body The point here is to wrap all form values and include in the email message\/body with: &lt;div id=\"field_LEAD_FIELD\"&gt;[your-CONTACT-FORM-FIELD]&lt;\/div&gt; After the email is sent this field will be populated with the actual field value and will become eq. &lt;div id=\"field_LEAD_FIELD\"&gt;John Doe&lt;\/div&gt; You will need to replace LEAD_FIELD with the actual lead field. You will need actually to create a contact form field in order to add the fields in the email body. 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 field_name field_title field_email field_website field_phonenumber field_company field_description field_address field_city field_state field_country field_zip field_lead_value (v2.5.0) Country Field If you are passing a country field, keep in mind that the country must be ID from Xodox CRM database table for countries (tblcountries) or the name Eq. United States (without typos) because Xodox CRM script will compare the country name passed in the message body and find suitable country id from Xodox 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, Xodox CRM won\u2019t be able to identify the ID of the country from countries table. Custom Fields In case you want to integrate a custom field for a lead, you can use custom_field_ID,&nbsp;Replace the ID with the actual custom field ID which can be found in Setup-&gt;Custom Fields. If you use a custom field the email message markup should look like this: &lt;div id=\"custom_field_ID\"&gt;[your-CONTACT-FORM-FIELD]&lt;\/div&gt; Note that if you are adding custom fields of type Checkbox or Select, the options must be the same like the one you added in Xodox CRM custom field option in Setup-&gt;Custom Fields. Also for dates fields, the dates custom fields must be passed in Y-m-d format. Eq. example for a custom field of type Select in Xodox CRM \u2013 Click here to see the options config. Eq. example for a custom field of type Select in Contact Form 7 \u2013 Click here to see options config. Attachments 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-&gt;Settings-&gt;General (Xodox CRM installation) will be added while importing the lead. Full example with more fields Let\u2019s say our Contact Form 7 have fields: Subject Name Email Website Phone number Company Message Contact Form Fields Our contact form fields config should look like this (you can format it however you like): &lt;label&gt; Subject [text* your-subject] &lt;\/label&gt; &lt;label&gt; Your Name (required) [text* your-name] &lt;\/label&gt; &lt;label&gt; Your Email (required) [email* your-email] &lt;\/label&gt; &lt;label&gt; Website [text your-website] &lt;\/label&gt; &lt;label&gt; Phone Number [text your-phonenumber] &lt;\/label&gt; &lt;label&gt; Company [text your-company] &lt;\/label&gt; &lt;label&gt; Your Message [textarea your-message] &lt;\/label&gt; [submit \"Send\"] 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 \u201cIn the following fields, you can use these mail-tags\u201d The email body content should look like"}