Webflow forms do not natively support assigning users to specific Mailchimp groups, but you can achieve this using custom code or a third-party automation tool.
1. Understand Mailchimp Groups
- Groups in Mailchimp are used to segment your audience based on interests or behavior.
- Users need to be subscribed to a Mailchimp audience and added to a specific group inside that audience.
- You can use Mailchimp’s API to submit the form data and assign the user to specific group(s).
- In your Webflow form, include a hidden input or regular checkboxes/radio buttons to represent the group selection.
- In custom JavaScript, use a
fetch()
or XMLHttpRequest
to send a POST
request to Mailchimp’s API endpoint. - You must include:
- The user email address.
- The correct grouping ID and group names in the request body.
- An authenticated API call using your API key (note: you should not expose it in frontend code due to security risks).
3. Use Zapier or Make (Integromat)
- As an alternative to direct API calls, use tools like Zapier or Make to connect Webflow to Mailchimp.
- Steps:
- Trigger: Webflow form submission.
- Action: Mailchimp “Add/Update Subscriber”.
- Map group fields: Within the Zap or scenario, assign the user to group(s) by mapping form values to Mailchimp group preferences.
- You can embed a Mailchimp form with group checkboxes directly into Webflow using their embed code.
- However, this limits Webflow’s control and styles, and doesn’t allow you to use Webflow’s native form handling.
Summary
Webflow forms alone can’t assign users to Mailchimp groups, but you can do it with custom API code or automation tools like Zapier. The API method gives more flexibility but requires secure back-end handling to protect your Mailchimp credentials.