• Resolved Candymac

    (@candymac)


    We have a form that allows the user to add themselves to multiple lists with checkboxes that populate the _mc4wp_lists[] array. Additionally have a few merge fields in the form that are only relevant to a specific list.

    Was wondering if anyone knew a hook or filter that could be used to selectively send these fields to a specific list rather then to every list the user subscribed to.

    Any suggestions appreciated.

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Hi Candymac,

    If the fields are specific to a list then the plugin will already automatically filter them out and only send them to the list that actually has this field. This filtering is done based on the field “merge tag”.

    So if you have a form subscribing to multiple lists where certain field names only appear on one of the lists, that field will not be sent to any of the other MailChimp lists. Nothing else you need to do on your side.

    Hope that helps a little. If not, let us know please.

    PS. As a bonus you could data-show-if to only show the fields when the list that has that field is selected. Here’s a KB article on that: https://mc4wp.com/kb/conditional-fields-elements/

Viewing 1 replies (of 1 total)

The topic ‘Selectively Populate Custom Fields with using Multiple Lists’ is closed to new replies.