PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Add user to group based on multiple GF field values?

  1. I have a client using Gravity Forms to take member registrations and then feed them to MailChimp. Members can choose membership in one to three councils. Accordingly, there are three GF fields (Primary, Secondary, and Tertiary Council) with the same set of possible answers.

    I have created groups in MailChimp that correspond to that set of possible answers. Is there any way to add a member to a group based on any of three field values?

    It would be ideal if I could have multiple conditionals (like MC has for creating segments) in the Group assignment section of the feed setup. But I am comfortable doing some custom PHP if you guys could point me in the right direction.

    Thanks!
    Phil.

    Posted 12 years ago on Tuesday September 11, 2012 | Permalink
  2. Forgot to add the site in question: http://vsra.org/membership/become-a-member/

    Also, are there hooks and filters specific to the MailChimp Add-on? I can't find anything in the documentation.

    Posted 12 years ago on Wednesday September 12, 2012 | Permalink
  3. Looking through the plugin files, I did not see any mailchimp-specific hooks or filters and there is no public documentation for them. What were you trying to hook into?

    For your first question, I created two sets of groups in Mailchimp, then created a form with two checkbox groups. Then I enabled the groups in the Gravity Forms Mailchimp feed settings, and mapped my form fields to the groups with the proper conditions. Here are some screenshots.

    Preview of my form
    Mailchimp feed setup in Gravity Forms
    Group setup at Mailchimp

    I hope that helps. If I misunderstood the question, please clarify with additional information. Thank you.

    Posted 12 years ago on Sunday September 16, 2012 | Permalink
  4. Regarding the hooks thing: What I specifically want to do is force the MailChimp feed to run (or somehow update MailChimp records) when a GravityForms entry is updated. For example, if an administrator updates an entry, I want that change reflected in MailChimp. I don't have a link the the post, but I did see a post in this forum where someone asked a similar question and an admin said it could be done with some custom coding via hooks and filters. I just need someone to point me in the right direction.

    To clarify the group thing: What I'm looking for is for someone to be assigned to *one* group based on any of three field values. Currently, it looks like there can be only one conditional per group assignment.

    Thanks for your help, Chris.

    Posted 12 years ago on Monday September 17, 2012 | Permalink