• Resolved kurtiz

    (@kurtiz)


    I’m using GravityForms to register on my site and add to MailChimp. I am also using a different form for the user to update their profile on the site as well as MC. The issue is that sometimes people will add AND remove an option in a field. While this syncs nicely in WordPress, it only adds the group in MC without removing the one they deselected.

    Is there a way to remove groups from a contact?

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

    (@lapzor)

    Are you setting interest groups? Or i the group selection synced to a different type of field in Mailchimp? Thanks for letting me know.

    Thread Starter kurtiz

    (@kurtiz)

    Hello, it’s a Mailchimp group syncing with an ACF WordPress checkbox field.

    Plugin Contributor Lap

    (@lapzor)

    If you switch to using a MC4WP form, there is a setting “replace interest groups” that can be set to Yes to replace the groups instead of just add them.

    If you you our Premium add-on you can also receive an email as soon as the form is filled, using it as a sort of contact form.

    If you use an integration method, you may be able to code some things yourself (if you have PHP coding skills). You can set and unset interest groups via PHP code like this:

    //Set group
    $subscriber->interests[ "91lxm10xzl" ] = true;
    // Unset group
    $subscriber->interests[ "91lxm10xzl" ] = false;

    You can apply code per integration method, here are the filter hooks for each integration method:

    https://github.com/ibericode/mailchimp-for-wordpress/blob/master/sample-code-snippets/integrations/integration-slugs.md

    Hope that helps. If you have any questions, please let me know!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Remove MC Group when Updating GravityForm form’ is closed to new replies.