Send additional CF7 fields to MailChimp

By default, the plugin will only extract the name and email of the person filling out the form. If you want to send more fields to MailChimp then you can easily do so by prefixing the field names with mc4wp-.

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
  • EMAIL
  • WEBSITE

CF7 code:

<p> 
	<label for="name">Full Name</label> 
	[text* mc4wp-NAME id:name] 
</p> 
<p> 
	<label for="email">Email</label> 
	[email* mc4wp-EMAIL id:email] 
</p> 
<p> 
	<label for="website">Website</label> 
	[url mc4wp-WEBSITE] 
</p> 
<p> 
	<label for="message">Message</label> 
	[textarea* message id:message] 
</p> 
	[mc4wp_checkbox] 
<p>
	[submit "Send"]
</p>

Please note that the `[mc4wp_checkbox]` code is used to add the sign-up checkbox to the contact form.

Was this article helpful? ·