The Contact Form 7 extension allows you to capture leads from your Contact 7 forms into your Jetpack CRM as Leads.
The Standard Contact Form 7
The way that Contact Form 7 is setup means that there’s some mapping required before the data will be captured in your CRM.
When you first activate the Contact Form 7 plugin there’s a default form that looks like this:
Your Name (required) [text* your-name] Your Email (required) [email* your-email] Subject [text your-subject] Your Message [textarea your-message] [submit "Send"]
Turning it into a Jetpack CRM Contact Form
To use the form to capture data into Jetpack CRM you’ll need to edit the fields. Here’s what you need to capture first name, email and notes.
It’s also important that you add a hidden field with
jetpackcrm-add. This tells the Contact Form 7 plugin that this is a form you want captured into Jetpack CRM.
fname and Email
First Name (required) [text* fname] Last Name (required) [text* lname] Your Email (required) [email* email] Subject (required) [text* subject] Your Message (required) [textarea* notes] [hidden jetpackcrm-add default:jetpackcrm-add = "jetpackcrm-add"] [hidden status default:status = "Lead"] [submit "Send"]
In the above example, Subject is not passed through to Jetpack CRM. However, it is used as the subject line in the Contact Form 7 confirmation email (and imported into the help desk software).
The “Mail” tab
It’s also important to make sure the Mail tab is setup correctly in Contact Form 7. Notice the fields in the Mail tab need to match the fields in the Form tab.
The form example above will add contacts with a Lead status. To change that, replace
Lead with the desired status in the following line:
[hidden status default:status = "Lead"]
The status should already be defined in the Field Options settings.
To capture a custom field you use the slug of the custom fields which is shown in Jetpack CRM > Settings > Custom Fields.
Add whatever Contact Form 7 field you’d like. Then add the custom field slug into the field, like this:
Your Choice [select food-choice "Chicken" "Pork" "Beef"]
You can pass information through a hidden field. You can create this by using this format:
custom-field-slug with your custom field’s slug that you can set and find under Jetpack CRM Settings > Custom Fields section.
cf-7-tags custom field has been created under CRM Settings > Custom Fields. For this example, we used a field type
Include a hidden field in the Contact Form with the created custom field
Once the form has been submitted, you can see the hidden custom field added in your CRM contact:
You can also add tags to your contacts by adding a field like this:
[hidden jetpackcrm-tags "tag one,tag two"]
This will add two tags to your contact — “tag one” and “tag two”.
You can find a full list of available contact fields here. It’s important to make sure your field labels in Contact Form 7 match the Jetpack CRM field.
Connecting Contact Form 7 from an external site to a CRM site
If you are using Jetpack CRM on a separate site and want to add contacts via Contact Form 7 from an external site, please follow the steps in this guide.