MailChimp tags not split [RESOLVED]

Hi,

I have set up a form on our website [link removed].
In the form, a Multi-Select field is present that is used in the MailChimp Feed as merge tag for the Tags field.
The feed works well and the tags do end up in MailChimp on the contact, but they are not split by a comma as mentioned in the description.

I have tried to manipulate the input value of the field through the gform_after_submission hook.
The first try was to implode the array to a string.
Second try was to make an array of arrays [["name" => "test", "status" => "active"]["name" => "test 2", "status" => "active"]] as mentioned in https://mailchimp.com/developer/marketing/api/list-member-tags/add-or-remove-member-tags/.
Neither option worked.

Any ideas on how to fix this?

Using WP 6.6.2, Gravity Forms 2.8.18 and Gravity Forms Mailchimp Add-On 5.5.0.

Thanks,

Sten

Multiple tags are not created from the output of a single merge tag. This is mentioned in the setting tooltip.

If you use a checkbox field and add the merge tags for each input, separated by commas (e.g. {:1.1},{:1.2},{:1.3}), each selected choice would be added as a separate tag.

The gform_mailchimp_subscription filter can be used to modify the $subscription['tags'] property.

Ah, i misunderstood the tooltip. In my mind it meant that commas within a merge tag will be separated into single tooltips.

With the hook i can get it to work with a multi-select field.
Thanks for the clarification.

A basic example when using a multi-select field, for future reference:

add_action( 'gform_mailchimp_subscription', '18388_mailchimp_tags', 10, 6 );

function 18388_mailchimp_tags( $subscription, $list_id, $form, $entry, $feed, $member ) {
    $subscription['tags'] = json_decode( rgar( $entry, 6 ) );
    return $subscription;
}