Sending CF7 checkbox fields to a MailChimp list
-
Hello,
Using the MC4WP plugin – when I try and pass the value of a CF7 checkbox to a MailChimp text field, I get the following error:
ERROR: Contact Form 7 > MailChimp API Error: Bad Request. The resource submitted could not be validated. - merge_fields.CHECKBOX1 : Data did not match any of the schemas described in anyOf.
It’s worth noting the error only occurs if a value is checked, it works fine when the checkbox is blank.
The plugin is set up correctly and the values from other field types are being passed to MailChimp without issue.
The code for the CF7 form is as follows:
[text mc4wp-FNAME] [text mc4wp-LNAME] [email mc4wp-EMAIL] [checkbox mc4wp-CHECKBOX1 "opt1" "opt2" "opt3"] [mc4wp_checkbox] [submit "send"]
The MailChimp list is setup as follows:
Email Address* – EMAIL – email
First Name – FNAME – text
Last Name – LNAME – text
Checkbox1 – CHECKBOX1 – textI tried changing the MailChimp field type from ‘text’ to ‘radio’ (with matching options), but it didn’t make any difference.
I’m running the latest versions of WordPress, CF7, and MC4WP. There are no other plugins installed. I’m using the default Twenty Seventeen theme (latest version), with no modifications.
Any idea what I’m doing wrong here / what I need to do to get this working? Or is this a bug in the plugin?
I’m happy to provide access to the site if required.
- The topic ‘Sending CF7 checkbox fields to a MailChimp list’ is closed to new replies.