• Resolved page52

    (@page52)


    I’m using MailChimp for WordPress on Contact Form 7. I’ve added ‘mc4wp-‘ before all my fields to match merge tags in MailChimp. All working fine, except my last form field which is a checkbox where user can select multiple. This is showing up blank in MailChimp – any idea how to get this to show? Ideally separated by columns in the text field.

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Lap

    (@lapzor)

    Hi,

    MailChimp doesn’t really allow multiple values for 1 field.

    You could join the fields yourself before sending them in with a filter something like this:

    https://github.com/ibericode/mailchimp-for-wordpress/issues/452

    Hope that helps,

    Thread Starter page52

    (@page52)

    Thanks Lap, I tried that but unfortunately it didn’t work.

    This is my form code:

    <p style=”float: left; clear: both; margin-top: 20px;”> <label>Event Interests</label>
    [checkbox* mc4wp-eventinter id:newline “Swim” “Bike” “Run” “Triathlon” “Aquathlon” “Duathlon” “Aquabike”]</p>

    On MailChimp it’s a text field with tag ‘EVENTINTER’.

    I tried this code in functions.php:

    add_filter( ‘mc4wp_integration_contact-form-7_data’, function( $data ) {
    $data[‘EVENTINTER’] = join( ‘;’, $data[‘EVENTINTER’] );
    return $data;
    });

    EVENTINTER field on captured names on MailChimp still shows blank.

    Any other ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multiple Select Checkbox not populating in MailChimp’ is closed to new replies.