• Resolved skoochgroup

    (@skoochgroup)


    So SUPER frustrated with this plugin … every thing I have done is as per instructions, have gone through FAQs, troubleshooting, forums … everything!!

    Still not adding subscribers to my Mailchimp list.

    [2017-02-08 13:56:30] ERROR: Contact Form 7 > MailChimp API Error: Bad Request. The resource submitted could not be validated.
    – merge_fields.SELECTION : Data did not match any of the schemas described in anyOf.

    itana.org.au

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

    (@lapzor)

    Hi,

    I notice the error is coming from ContactForm 7. Are you using the MailChimp integration offered by CF7? In that case I suggest asking ContactForm 7 for support or switch to using our integration with CF7 if you like our help.

    It seems to me this error means the value send in for “merge_fields.SELECTION” does not match the available values (choices) as setup in MailChimp.com under List – Settings – Fields.

    Thread Starter skoochgroup

    (@skoochgroup)

    Hi Lap,
    thanks for the very fast response.

    I am using your integration (inside the plugin) but am struggling.
    I have removed almost all field and am slowly working back from that.

    So if, for example, my SELECTION field was a checkbox in CF7 but a radio button in Mailchimp, this would throw this type of error?

    Thread Starter skoochgroup

    (@skoochgroup)

    If this is the case, and since I see no CHECKBOX field options in MC, if I have a checkbox in my CF7 form, how can I transfer this information across to MC ?

    Thread Starter skoochgroup

    (@skoochgroup)

    OK Lap,

    Thanks for the direction in where to look. There were a couple if things that I changed (eg PHONE to TEXT to get the right formatting, since we are not all American, and changed the SELECTION to RADIO).

    Now it works.

    BUT – I still have the issue of trying to send the data from the RADIO buttons, which I would prefer to be cHECKBOX so that they are not exclusive, into my MC list.

    Any ideas on how to achieve this?

    I thought maybe setting up separate checkbox fields in the form (painful & tedious) or using GROUPS in MC.

    Thread Starter skoochgroup

    (@skoochgroup)

    OK … for anyone out there having the same issues, I shall recap.

    I have now fixed the issue of sending data to MC and GROUPS.

    The code I used was from mc4wp documentation and examples:
    <input name="mc4wp-INTERESTS[mc-id-number][]" type="checkbox" value="mc-group-id"> <span>My checkbox text</span>

    However, I can no longer pass this data back to CF7 into the MAIL tab, so that I can confirm my customers’ selections.
    Whereas previously using a normal checkbox [mc4wp-SELECTION] and getting “Checkbox Text” returned into the email form, now using [mc4wp-INTERESTS] returns values of the “mc-group-id” and not the “Checkbox Text” which is what I want.
    Afterall, telling my customer they have registered for “37f90b8c” doesn’t really mean anything.

    Is there some way to return the “Checkbox Text” to the [mc4wp-INTERESTS] field in teh MAIL tab for any GROUP/s that the customer select/s ?

    • This reply was modified 8 years, 1 month ago by skoochgroup.
    Thread Starter skoochgroup

    (@skoochgroup)

    For anyone playing along at home –

    The solution for passing the checkbox selections (GROUP data) back to the MAIL form in CF7, was kindly provided by DANNY at mc4wp – awesome, thanks !!

    >>>
    This is possible but for this to work, the plugin needs your interest category ID. It can then use the textual group name + the category to determine the actual interest group ID before sending the value off to MailChimp. You can find this interest category ID by going to the form editor in our plugin and then add the interest grouping to your form. You should see HTML that looks a bit like this.

    <input name="INTERESTS[c503c0f57d][]" type="checkbox" value="0f8a0ed3bd"> <span>Group 1</span>

    In this case, the part between the brackets is your interest category ID, “c503c0f57d”. Your CF7 mark-up should then read like this (in HTML, not sure about the CF7 code but I’m sure you do):

    <input name="mc4wp-INTERESTS[interest-category-id][]" type="checkbox" value="Interest Group Name"> <span>My checkbox text</span>

    **(the “My checkbox text” can be the same value as “Interest Group Name” if you like – which was what I needed.)

    ** In your MAIL tab on CF7, you then insert [mc4wp-INTERESTS] wherever you want this information to display.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Not adding subscribers to Mailchimp’ is closed to new replies.