Title: Selectively Populate Custom Fields with using Multiple Lists
Last modified: April 14, 2017

---

# Selectively Populate Custom Fields with using Multiple Lists

 *  Resolved [Candymac](https://wordpress.org/support/users/candymac/)
 * (@candymac)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/selectively-populate-custom-fields-with-using-multiple-lists/)
 * 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](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/selectively-populate-custom-fields-with-using-multiple-lists/#post-9044171)
 * 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/](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.

 * ![](https://ps.w.org/mailchimp-for-wp/assets/icon-256x256.png?rev=1224577)
 * [MC4WP: Mailchimp for WordPress](https://wordpress.org/plugins/mailchimp-for-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailchimp-for-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailchimp-for-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/mailchimp-for-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailchimp-for-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailchimp-for-wp/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/selectively-populate-custom-fields-with-using-multiple-lists/#post-9044171)
 * Status: resolved