After connecting your Contact Form 7 form to Mailchimp, the plugin will only extract the name and email field from the submitted form values.
If you want to send more fields to Mailchimp then you
can do so by prefixing the field names with mc4wp-
. For
this to work the field name has to match exactly with the
field on your audience in Mailchimp.
So, if you have a field named WEBSITE
for
your selected Mailchimp list then you should add a field
named mc4wp-WEBSITE
to your Contact Form 7 form code.
Contact Form 7 example code
The following CF7 code is a complete example which sends the following fields to Mailchimp.
- NAME
- WEBSITE
CF7 code:
<p>
<label for="name">Full Name</label><br />
[text* mc4wp-NAME id:name]
</p>
<p>
<label for="email">Email</label><br />
[email* mc4wp-EMAIL id:email]
</p>
<p>
<label for="website">Website</label><br />
[url mc4wp-WEBSITE]
</p>
<p>
<label for="message">Message</label><br />
[textarea* message id:message]
</p>
<p> [mc4wp_checkbox] </p>
<p>
[submit "Send"]
</p>
In this example, [mc4wp_checkbox]
is used to add the add the sign-up
checkbox to the CF7 form.