Ninja Forms
Ninja Forms
  • Pricing
  • Add-Ons
  • Templates
  • Reviews
  • Get Help
    • Documentation
    • Support
    • Contact Us
  • Blog
  • Learn

Mailchimp

The Mailchimp add-on needs to be installed and activated to see the features mentioned in this documentation.

Getting your Mailchimp API Key

  1. Click this link to navigate to the API Keys section of your Mailchimp account: Your API Keys
  2. Copy an existing API key or click the Create A Key button.
    Getting Mailchimp API Key
  3. Your new key is in the textbox (highlighted yellow in the image). It includes the country code at the end. e.g. “476025ba25fd1884cc6dd3a5f1fbfe04-us11”

Setting up Ninja Forms to work with Mailchimp

  1. Go to Ninja Forms > Settings. Scroll to the bottom of the Settings page and you should see the Mailchimp section.
  2. Copy your API key from MailChimp exactly and paste into the Mailchimp settings in Ninja Forms.Mailchimp API Key
  3. Go to Ninja Forms > Dashboard then click the Add New button. You can then choose the Mailchimp Signup form template.
  4. Choose your Mailchimp list and name the form and click the Create button.

Manually Adding a Mailchimp action to your form

To add the action to any form, from the Emails & Actions tab click Add New Action and then the Mailchimp action from inside the Actions Window that opens.

image of the Emails and Actions tab of the form builder with Add New action and the mailchimp action highlighted within the actions window

Choose the Mailchimp list you would like the data to be saved to.
— Interest groups and tags are now available —-

If your lists do not show up, you may need to refresh the list via the icon beside the “List” label.

MailChimp settings in Ninja Forms

Map the fields from your form to the appropriate Mailchimp list fields using the merge tags.
Select Merge Tags

Add Tags to your list, if any.
Note: Use a comma-separated list for tags (e.g., tag1, tag2, tag3, etc), and ensure tags are created in Mailchimp in advance.
Tags used in the Mailchimp action are case sensitive and need to be exactly the same as the tags created in Mailchimp.
Tags

Choose your Interest groups for your list, if any.
Interest Groups

Under Advanced, Choose if you would like users to confirm their subscription.
Have users Confirm their submission
If this option is enabled, they will be sent an email from Mailchimp to confirm their addition to the list.

Please note that if a field is required in Mailchimp, it MUST be mapped to a Ninja Forms field, or your contact will not be added to the list.

Mapping Ninja Forms Fields to Audience Fields in Mailchimp

Mapping Ninja Forms Fields to Audience Fields in Mailchimp

To be able to map more than just the default fields to Mailchimp, you will need to create ‘Audience fields’ within Mailchimp, for them to show up within the Mailchimp action.

Mailchimp list field mapping

Creating an Audience field in Mailchimp

Within your Mailchimp account, navigate to ‘Audience’.

Mailchimp Audience

Then click ‘More Options’ and select ‘Audience fields and merge tags’.

Mailchimp audience fields and merge tag option

Click ‘Create a new field’.

Creating a new field within Mailchimp

A window will open and you will be able to give the field a label and choose the type of field.

Choosing field type within Mailchimp

Once you have created a field within Mailchimp, refresh your Ninja Forms form and resync the Mailchimp List within the Mailchimp action, for the newly created field to populate and show amongst the options to map to.

Resyncing of Mailchimp lists in the Mailchimp action of the Ninja Forms builder

Your newly created Audience field will then show in the Mailchimp action, which you can then map to.

Newly created Audience field showing in Mailchimp action

Mapping Checkbox List, Radio List, and Select Fields to Mailchimp

To see these features, you will need to enable Developer Mode in Ninja Forms’ settings.

Please note that when using checkbox list, radio list, or select fields, the values you input into Mailchimp for the ‘Choices’ must match exactly to the values of your checkbox list, radio list, and select fields within the form builder.

radio list, check list and select field values

choices within Mailchimp for mapping radio list, checklist and select fields from Ninja Forms

How to Create a Tag

Adding a Tag

To be able to add a tag to the submission, you will need to add a ‘Tag’ within Mailchimp for them to be added to the Mailchimp action Tags field when mapping fields.

Mailchimp action tags

Creating a Tag within Mailchimp

Within your Mailchimp account, navigate to ‘Audience’ > ‘Tags’.

Mailchimp tags

Then click ‘Create new tag’.

Creating a new tag within Mailchimp

Once you have created your tag, you can now use it within the Mailchimp action.

Created tags in Mailchimp account

Please note that the tag is case sensitive. It needs to match exactly to how you have created it in your Mailchimp account.

If you add more than one tag to your Mailchimp action, they need to be separated with a comma.

Comma separated tags in Mailchimp

How to Create an Interest Group

Adding an Interest Group

To be able to categorize the submission into a specific group, you will need to create a ‘Group’ within Mailchimp for them to show up within the Mailchimp action, under Interest Groups.

Mailchimp action Interest Groups

Creating a Group within Mailchimp

Within your Mailchimp account, navigate to ‘Audience’.

Mailchimp Audience

Then click ‘More Options’ and select ‘Groups’.

Mailchimp group option

Click ‘Create group’.

Creating a new group within Mailchimp

A window will open and you will be able to set up your Group.

Creating a group in Mailchimp

Once you have created a Group within Mailchimp, refresh your Ninja Forms form and resync the Mailchimp List within the Mailchimp action, for the newly created Interest Groups to populate and show amongst the options to toggle on.

Resyncing of Mailchimp lists in the Mailchimp

Newly created Interest Groups showing in Mailchimp action

Want the subscriber to be only added to a specific group based on a selection in the form?

You can have multiple Mailchimp actions, each set differently according to the interest group you want them added to.

With the Conditional Logic add-on you can conditionally send information to Mailchimp and have subscribers added to specific groups based on a selection made within the form.

Mailchimp and Conditional Logic

Please note: When using the Mailchimp Sign Up Form Template, Group ID values (a string of letters and numbers) are automatically generated according to your API connection with your Mailchimp account. If you remove these, they cannot be retrieved again unless you create a new form using the Mailchimp Sign Up Form Template.

Group ID

Mailchimp Opt-in field

The Mailchimp Opt-in field gives the user an option to choose if they want to be added to a Mailchimp list without the need to set up a Conditional Logic statement.
To add a Mailchimp Opt-in field to your form, click on the blue add field button, then choose the Mailchimp Opt-in.

mailchimp-opt-in

If the Mailchimp Opt-in field is checked, the Mailchimp Action will be processed and the user will be added to the list. If the Opt-in is unchecked, the Mailchimp Action will be ignored.

Formatting Dates

When sending dates to a Mailchimp Date-type field, it is best to use one of two formats:

  • DD-MM-YYYY
  • MM/DD/YYYY

Note that when putting the month first, use a slash “/” and when putting the day first, use a dash”-”. This helps keep the two in the correct order so that the day and month do not get reversed when sent.


Mailchimp Tutorials & Blog Articles
Proven Ways to Get More Newsletter Signups How to Automate Zoom Webinar Registration & Mailing List Subscriptions Connecting Mailchimp to WordPress Creating a Signup Form in WordPress Send Custom Data to Mailchimp
Need some help?
  • Core

      • Getting Started

        • Installing Ninja Forms
        • Creating a New Form
        • Field Types
        • Abilities API
        • Favorite Fields
      • Form Actions

        • Google Analytics 4
        • Sending Email
        • Display a Success Message
        • Redirect on Submit
        • Record Submission
        • WP Hook
        • Export Data Request
        • Delete Data Request
        • Akismet Anti-Spam
      • Advanced Settings

        • Display Settings
        • Restrictions
        • Calculations
      • Additional Form Features

        • Merge Tags
        • Querystrings
        • Unique Field Validation
        • Styling Your Forms
      • Publishing and Sharing Forms

        • Publishing a Form to a Post or Page
        • Sharing a Form Using a Public Link
      • Submissions

        • Submission Management
        • Displaying Submissions
      • Spam Protection

        • Cloudflare Turnstile
        • hCaptcha
        • Google reCAPTCHA
        • Akismet Anti-Spam
      • Email Troubleshooting

        • Email Action Troubleshooting
        • Improving WordPress Email Deliverability
      • Global Settings

        • Plugin Settings
        • Developer Mode
        • Import / Export Forms & Fields
      • Frequently Asked Questions

        • How do I Edit or Translate “Fields marked with an * are required”?
        • How Do I Use Custom CSS?
        • Is Ninja Forms secure?
        • GDPR Compliance with Ninja Forms
  • Add-ons

      • Advanced Form Features

        • Advanced Datepicker
        • Conditional Logic
        • File Uploads
        • Layout and Styles
        • Multi Step Forms
        • Save Progress
        • User Analytics
        • User Management
      • Submissions Extended

        • Managing Submission Permissions
        • Excel Export
        • Front End Posting
        • PDF Form Submissions
        • Scheduled Submissions Export
      • Accept Payments

        • Authorize.net
        • Elavon
        • PayPal Checkout
        • PayPal Express (Legacy)
        • Recurly
        • Stripe
      • Automation

        • Webhooks
        • Zapier
      • Email Marketing

        • ActiveCampaign
        • AWeber
        • Campaign Monitor
        • CleverReach
        • Constant Contact
        • Kit
        • EmailOctopus
        • Mailchimp
        • Emma
        • MailPoet
      • CRMs

        • Capsule CRM
        • CiviCRM
        • HubSpot
        • Insightly CRM
        • OnePageCRM
        • Pipeline CRM
        • Salesforce CRM
        • Zoho CRM
      • Notifications & Workflow

        • ClickSend SMS
        • Help Scout
        • Slack
        • Trello
        • Twilio
  • Account & Add-on Management

      • Managing Your Add-ons

        • Getting Started with Memberships & Add-ons
        • Add-on Licensing & Updates
        • Upgrading a License
      • Payments & Subscriptions

        • Managing Subscriptions
        • Updating Your Payment Method
        • Generating a Purchase Invoice
  • PRODUCT INFO
    • Pricing
    • Add-Ons
    • Testimonials
    • Blog
    • Download
    • Our Newsletter
  • ABOUT
    • About Us
    • Terms & Conditions
    • Privacy Policy
    • Accessibility
    • Partners
    • Sitemap
  • MAKE MONEY
    • Become an Affiliate
  • SUPPORT
    • Documentation
    • Contact Us
    • Your Account
five stars

Patrick Rauland

As a developer I love how easy it is to customize Ninja Forms. It's built in a modular form so at any point you can inject your own programming and change the output. If you need to add a hook for some custom logic you can suggest it on GitHub or send a pull request yourself and it will quickly be merged into the main plugin. All round there isn't a better form plugin for developers or anyone really.

Patrick Rauland
Patrick Rauland

We trust our business with these strategic partners.


Copyright © 2011-2024