• Resolved napisal

    (@napisal)


    Hi!

    First of all, thank you for your work and for this great plugin.

    I would like to ask a question about Contact Form 7 integration. I’ve successfully created a form which sends First Name, Surname and E-mail to MailChimp list. But birthday field doesn’t seem to fill correctly. I chose date format at Contact Form 7. When contact is added to the list, its birthday shows as 01.01 instead of the value filled in on my site. Perhaps it’s because MailChimp only processes day and month and Contact Form 7 sends to the plugin the whole date, year included. Is it possible to fix this?

    Thanks!

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

    (@lapzor)

    Maybe you can test by sending the CF7 birthday date to a normal text field in Mailchimp, to see what it actually sends in. I guess it’s a conflict with the format the date is sent in with. Maybe you can ask CF7 for support on how to change the date format.

    Thread Starter napisal

    (@napisal)

    Thank you for your reply! Using normal text field and entering a date in a format XX/XX does the job. Still, it’s not a great solution since users tend to make mistakes.

    As for CF7 date format – they’re using HTML5 format for this, so it depends on a user browser settings. The only thing which can be changed is how this date looks in the e-mail. But I suppose MC4WP catches the content before that. As a feature request, it would be great to introduce fields mapping, just how they done it here: https://chimpmatic.com/help/sending-birthday-fields-to-mailchimp

    Plugin Contributor Lap

    (@lapzor)

    i thought that the html5 date field would output the date in a standard yyyy-mm-dd format?
    And Mailchimp should accept that format. The difference per browser setting should only be in the view and not in the actual output as far as I understand it.

    What I meant for you to test was connect the CF7 “html5 date field” to a normal text field in Mailchimp to see what date format the CF7 field generates as that might hint us as to why Mailchimp is not accepting it.

    I also recommend asking the CF7 community for support on this date format issue in their own forum.

    Thread Starter napisal

    (@napisal)

    MailChimp only accepts “DD/MM” or “MM/DD” format for birthday field. Year should not be sent. CF7 always sends YYYY-MM-DD format. And there is no way to change this according to the support topics on various forums I’ve read. The only thing that can be changed is how the date would look in e-mail sent by CF7.

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hey @napisal,

    While CF7’s support would be more suitable to answer this, I looked into this and only option seems to be to use JavaScript.

    Another option is to break the date field into 2 separate select fields. I am not sure if this data would then be sent via CF7 notification but it could work in MailChimp.

    Please check https://github.com/ibericode/mc4wp-snippets/blob/master/forms/birthday-field-select.html.

    You will need to prefix the field names with “mc4wp-“.

    Thread Starter napisal

    (@napisal)

    Noted! Thank you for your help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Birthday field Contact Form 7 Integration’ is closed to new replies.