• Resolved funsail

    (@funsail)


    Why does the plugin generate code like

    <input name="INTERESTS[b2f7932c76][]" value="41c5e1d14b" checked="true" type="checkbox">

    but MP form builder generates

    <input type="checkbox" value="1024" name="group[13721][1024]" id="mce-group[13721]-13721-0">

    And then it seems to work in CF7 using

    
    <input type="hidden" name="mc4wp-INTERESTS[b2f7932c76]" value="Yes">
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter funsail

    (@funsail)

    I get you add mc4wp-
    but what is the extra [] in INTERESTS[b2f7932c76][]
    Why do neither use the field name like in https://kb.mc4wp.com/send-additional-cf7-fields-mailchimp/

    Why do neither use a text value?

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hello,

    Thanks for reaching out to us.

    The extra “[]” sign is used because the Interest groups are processed as an array in PHP. We used to as earlier in some cases the details are not sent to MailChimp in some integrations. Hence we decided to use it so it works in most use cases. If it’s working for you without using those extra characters, then you are free to remove them.

    Thread Starter funsail

    (@funsail)

    I see. And when an existing user signs up I find that the

    <input name=”INTERESTS[b2f7932c76][]” value=”41c5e1d14b” checked=”true” type=”checkbox”>

    doesn’t take effect. What can we do?

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hello,

    Have you placed this code in our plugin or 3rd party form?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Group codes’ is closed to new replies.