How to create Contact Form 7 using an integration with WordPress?
Our WordPress integration lets you add people signing up via Contact Form 7 to your GetResponse list when they check the opt-in box. Before you use it, make sure you’ve installed and activated the Contact Form 7 plugin first (otherwise, it won’t appear within Adding contacts). Contacts will be added to the list selected when configuring integration with WordPress.
Here’s how to edit your contact form template:
- In your WordPress account go to Contact > Contact Forms to edit existing form or Contact > Add New to create a new one.
- Paste the following snippet into the contact form template. Customize the tags, custom fields and call to action to suit your brand identity and encourage people to sign up.
<label> Your first name (required)
[text* firstname] </label>
<label> Your last name (required)
[text* lastname] </label>
<label> Your Email (required)
[email* email] </label>
<label> City
[text gr4wp_custom_city] </label>
<label> book1
[text gr4wp_tag_book1] </label>
<label> Your Message
[textarea your-message] </label>
<label>Sign up to our newsletter
[gr4wp_checkbox] </label>
[submit "Send"]
—
Instead of using first name and last name in separate fields, you can use one name field:<label> Your name (required)
[text* fullname] </label>
—
You can add any GetResponse custom field to it using the following syntax:[gr4wp_custom_customfieldname]
wherecustomfieldname
is the name of your custom field.
—
You can also use the form for assigning tags to your contacts using the following syntax:[gr4wp_tag "tagname"]
wheretagname
is the name of the tag.
—
To make the checkbox in Contact Form 7 accept true/false values (and not array), you can use the acceptance field with the optional tag:[acceptance gr4wp_custom_privacy_policy_consent class:os-tac optional] Privacy policy consent [/acceptance]
whereprivacy_policy_consent
is the name of your custom field.
—
You can also add multiselect checkbox to it (custom field needs to be created in GetResponse first):[checkbox gr4wp_custom_checkbox_ask_test
use_label_element "A" "B" "C"]
- Save the form.
- Enable in integrations.