Available on: Personal, Professional, Business plans
Mailchimp is an email list management tool and a CRM. It's used to keep track of audiences of any sort, be it clients, potential clients or content consumers.
When you connect your form to a Mailchimp list, each submission will add the email of the submitter to that list, along with the name, phone number and address if needed. Multiple submissions with the same email will be ignored, only the first will be added to the list.
Adding an input named "email", or alternatively "_replyto", will set the primary email of the new subscriber in your Mailchimp list. This is the only required property. If the same address gets submitted twice it will not be duplicated in the list.
<input name="email" />
Adding an input named "_name", or alternatively just "name", will set the first and last names of the list subscriber that will be added. This is an optional field. If you want more control you can also use two inputs, one named "_fname" and the other "_lname" for first and last name respectively.
<input name="_name" />
Adding an input named "_phone" will set the phone number of the list subscriber that will be added. This is an optional field.
<input name="_phone" />
Adding an input named "_address" will set the street address of the list subscriber that will be added. This is an optional field.
<input name="_address" />
This is an optional field and only works if you have enabled the "Optin checkbox" in the Mailchimp plugin settings.
Adding a checkbox named "_optin" will trigger the Mailchimp plugin to add a contact to the specified list when checked. If the checkbox is left unchecked, the contact won't be sent to Mailchimp.
<input type="checkbox" name="_optin"/>
Adding an input named "group" will add the subscriber to a group. The value sent must be the exact group name case insensitive. If the group name doesn't exist on your Malchimp account, it'll be ignored.
This is an optional field
<input type="text" name="group" />
Adding an input named "interests" will add the subscriber to group interest. The value sent must be the exact interest name case insensitive. This field requires the group name. If the interests name doesn't exist on your Mailchimp account, it'll be ignored.
This is an optional field.
<input type="select" name="interests" multiple>
<option name="Interest One">One</option>
<option name="Interest Two">Two</option>
<option name="Interest Three">Three</option>
Including Additional Merge Tags
If you maintain additional merge fields on your contact list, Formspree will attempt to match the merge fields. You can read more about how to set up custom merge tags on the Mailchimp documentation.
When Formspree attempts to match your field with a Mailchimp merge field, we will look at the user-specified merge field identifier.
For example, if you had had a field named "Source" to track where your sign ups, came from here's how it might look in the Mailchimp dashboard:
When you connect it to your Formspree form, you must match the user-defined Mailchimp merge tag exactly (including capitalization). In this scenario, you should use "SOURCE" not "MERGE5". In your HTML, the field should look similar to this:
<input name="SOURCE" type="text" />
Now, when your contact is created or updated in Mailchimp, Formspree will include your additional merge field information with the contact.
Connecting to Mailchimp
Once you've created and configured a form, you can connect to Mailchimp using the Mailchimp Plugin. To do so, first go to the Plugins tab of your form. Then click the Mailchimp Plugin button.
It will trigger a popup that will ask you to connect to your Mailchimp account (even if you're already logged to Mailchimp, they still ask you for your password):
Once you've signed, you'll be prompted to select the Mailchimp list that will be linked to Finish Mailchimp Setup:
Instead of adding a contact to the mailchimp list each time the form is submitted, the Opt-in Checkbox setting will first check the presence of an _optin special field to determine if the plugin should be dispatched. See the _optin special field section above.
Choose a list and click Connect to enable plugin.
Once you've connected you'll see Mailchimp settings modal:
In the future if you'd like to change the list or disable the plugin entirely, you can do so by clicking on the Mailchimp button again to adjust its settings.