I'm having trouble figuring out the Mailchimp groups merge. You have the example "FOOD|types_of_food_you_like", but what happens when there are spaces? (ie. Services for my Home) I've attached a screenshot with the titles of my groups.

Comments

marcus178’s picture

Did you find out how to do this as having the same problem.

blackdog’s picture

Version: 6.x-1.0-beta2 » 6.x-1.0
Status: Active » Postponed (maintainer needs more info)

Have you tried this? I have a test group with a space in it, and it works just fine.

You enter your group name on the left, as usual:
Group Name|webform_field_key

marcus178’s picture

Just tried that and still not working

jdlind38’s picture

I just noticed that the field key is in a fieldgroup. Would that cause an issue?

blackdog’s picture

That could explain it. I'm not sure how to get to the key, but try something like
Group Name|[fieldgroup][key] or similar.

tommyallen789’s picture

I'm having a similar issue. It correctly subscribes the user to MailChimp, but none of the "Interest Groups" are submitted.

I am using the key/value combo for "Mailchimp interests fields" as (these are copy-pasted directly from MailChimp, although I'm unsure if the ampersand should be coded or left as-is):

Weekly Outdoor Trip List|email_trip_list
General News, Events & Workshops|email_general
Mantario Summer Program|email_mantario

And this references a series of checkboxes in a 'select options' field in the webform.

email_trip_list|Trip List (weekly or bi-weekly up-to-date list of Outdoor Activities)
email_general|General News & Events
email_mantario|Mantario Summer Program
areikiera’s picture

StatusFileSize
new125.57 KB

Took me a little bit to figure out exactly how to get it all to work too, but I've got it working. I've attached a (somewhat crazy looking) image that illustrates how to map all the fields and data. Hopefully it's of help to someone trying to figure out what needs to go where.

TIP: Ignore all my arrows til they point you to something. :)

FYI, I'm in D7. Not sure if the module is different for D6.

Mackee’s picture

Hey areikiera,

Thanks for this! It worked great, and I'm using D7 too.

areikiera’s picture

No prob! Really glad it helped somebody!

fordp86’s picture

This did not work for me for some reason I have tried multiple combinations and its not signing up to the check list option. I am using Drupal 6 so that maybe why its not right.

Checklist field key: sign_up

Options: MORF_magazine_and_newsletters|Biweekly newsletters

I also tried the group number 2|Biweekly newsletters

Do I use the group category? How is it done with a group name with spaces and parentheses?

MailChimp Interest Fields:

MORF magazine and newsletters (Year Round)|MORF_magazine_and_newsletters

I am clearly doing it wrong but am at my wits end..

olivier.compagne@gmail.com’s picture

Thanks a lot. I'm using Drupal 6 and areikiera's guide has worked for me. Wow, that was really unclear in the module.

fordp86, this may not help you, but at least you know that it's worked for me on D6, so it's possible! :) My mistake was to have created two form elements with the Mailchimp type: one for my mailing list signup checkbox, and one for my group interests. I changed the "group interests" options to a simple Select options type, and it worked.

nitrospectide’s picture

Issue summary: View changes

I'm in D7, running Webform 4, so I'm using the Webform MailChimp 2.0 Beta. After seeing areikiera's image at #7, I was able to get this working. The problem for me was that on the select options field, I'd expected that the key|value pair would be [actual name in mailchimp]|[some arbitrary label I come up with to represent that group]. Having it work this way would mean I could format the names differently in the picklist than they are inside MailChimp - even naming them completely differently for internally-focused technical names in MailChimp, and fun, marketing-focused names in the pick list like so:

designer|Designer
geek|Geek
client|Regular Folk

I don't understand why this is set up to not really make use of the key, and thereby force me to use the exact name from MailChimp on my pick list.

adam_b’s picture

Version: 6.x-1.0 » 7.x-1.x-dev

Just a note which I hope may save someone else from banging their head against a brick wall for several days trying to get this to work...

Check the software versions you're using:

  • Webform Mailchimp v2 with Webform 3 will transmit the merge fields, but not the interest groups
  • Webform Mailchimp v1 with Webform 3 will transmit both the merge fields and the interest groups

I know the version compatibility is documented on the project page, but I was confused because it was working correctly for the merge fields.

burgs’s picture

I'm using the latest 7.x-2.x-dev and the mailchimp php api version 2.
In the module file, on line 150, it doesn't validate me as using v2 in variable $use_v2_api
And I had to make a change to the module file, which I'm not sure has changed on the api between versions, but basically the api wants the list of groups as an array, and it's currently sending them as a comma separated string.

So, long story short, changing
line 137 from
'groups' => implode(',', $values_array),
to
'groups' => $values_array,
solved the problem, and groups come through ok.

millionleaves’s picture

Patch #4 in this issue solved the problem for me:

https://www.drupal.org/node/2500129

However, after implementing this patch, I also ran into an error that is described here (along with a workable solution):

https://www.drupal.org/node/2496443#comment-11462327

phosgen’s picture

This problem persists with v3 of the Mailchimp API but I found a workaround.

I set up the groups as a seperate dropdown mergefield within Mailchimp and added the needed groupnames as seperate values. I then use segments instead of groups to filter by this new mergefiled.

The new mergefield can be set up just like the other field (FNAME, LNAME, ... ) with the set up groupname-values.