Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey there, Nowton!

    While there’s not an easy way to do this with the WordPress plugin, it is possible with the regular MailChimp embedded form. Here’s the Knowledge Base article on that:

    Can I set up my signup form so that I can see where my recipients signed up?: https://eepurl.com/SKbn

    The idea is that you’ll have the groups marked as hidden but edit the code to pre-select one of them. That way, when the form submits, it automatically adds the subscriber, accordingly.

    Let us know if we can assist with anything else.

    Cheers

    Thread Starter nowton

    (@nowton)

    Ive got a form made-up like that, and that works. Contrary what an agent of MC told me on chat. Several hours wasted, that was. Now I’ll hunt for a widget that does not only display and submits the code, but also shows succes messages to the user, as the default code seems to get suppressed.

    Hey there, Nowton!

    If you’d like, I’ll be happy to take a second look at the chat that you had with one of the support operators. If you can provide the ticket number, we can pull it up on our end and address any issues.

    In the meantime, if we can help with anything else, give us a shout.

    Cheers

    If you’re ok with the public seeing your list of groups you could show the field in the plugin settings and use JavaScript to check the boxes you want.

    I’ve been looking for a way to do this without showing the field, and I’ve enabled it by making a simple edit to the plugin file and inserting hidden inputs.

    in mailchimp.php, at line 1201, it checks if the field is being shown:

    if (get_option('mc_show_interest_groups_'.$ig['id']) == 'on') {

    comment out this line, along with its closing bracket (line 1237), and add a case for hidden fields to be processed the same way as checkboxes.

    Insert the following above the line case 'checkboxes'::

    case 'hidden':

    Now, you can add hidden inputs that get processed the same way as checkboxes:

    <input type="hidden" name="group[#][]" value="Group Name"/>

    Where # is the group’s ID and the value is the name of the group. I used the Sub-header Content field to insert the hidden input, since it’s rendered inside the <form> tag.

    Thread Starter nowton

    (@nowton)

    Solved by hiding the preference groups using css, and using a html-widget to display the code in the sidebar. Plugin no longer needed in this case.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: MailChimp List Subscribe Form] How to preselect Interest Group’ is closed to new replies.