• Resolved andya51

    (@andya51)


    Hi,

    I have a form set up in Forminator with the following fields:

    • First Name
    • Last Name
    • Email Address
    • Share a Memory
    • Upload a Photograph
    • Would you like to join our mailing list?*
    • Would you like a free keyring?

    If a user selects “Yes” for “Would you like to join our mailing list?”, their First Name, Last Name, and Email Address should be sent to Mailchimp.

    The form is sending emails correctly, but the data isn’t populating Mailchimp.

    Do you have any idea what might be causing this issue?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @andya51

    I hope you are doing well today.

    Does your form use any select field? If so, we have a bug in that matter, and data are not sent to Mailchimp if the select field exists in the form.

    There is a hotfix for that:

    <?php
    add_filter( 'forminator_addon_mailchimp_add_update_member_request_args', 'wpmudev_multi_select_mailchimp_fix', 10, 4 );
    function wpmudev_multi_select_mailchimp_fix( $args, $form_id, $submitted_data, $form_settings_instance ) {
    if ( 2960 !== intval( $form_id ) ) {
    return $args;
    }

    foreach ( $args as $key => $value ) {
    if ( false !== strpos( $key, 'select' ) && is_array( $value ) ) {
    $args[ $key ] = implode( ', ', $value );
    }
    }

    return $args;
    }

    Note: In the code please change 2960 to your form’s?ID.

    Please add a must-use plugin to your site’s wp-content/mu-plugins folder like this https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins

    If that does not help and your form does not contain a select field, please double-check our guide once more: https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#mailchimp

    Kind Regards,
    Kris

    Thread Starter andya51

    (@andya51)

    Hi, it’s a radio button. Will this fix work for that too?

    Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hello @andya51

    Hope you’re doing well today.

    The bug is limited to the select field (specifically when multi-select is enabled). However, since you mentioned you are using a radio field, we will need to take a closer look at the issue to ascertain if it could be related. For this could you please enable Dubbing in Forminator by adding the below defines to the wp-config.php file on your site? Before adding those, please make sure to download the existing wp-config.php file on your PC locally so that you have a backup. Once done, please add the below defines –

    define( 'WP_DEBUG', true );
    // Enable Debug logging to the /wp-content/debug.log file
    define( 'WP_DEBUG_LOG', true );
    define('FORMINATOR_DEBUG', true);
    define('FORMINATOR_ADDON_DEBUG', true);

    After that, please try making a submission and share with us the debug.log file which will be generated in /wp-content/debug.log

    You can share it using a file-sharing service like Google Drive, Dropbox or a service like https://pastebin.com/

    Additionally, please also share the form export with us so that we could replicate the issue on our end and troubleshoot it further.

    To share the form export
    – Navigate to the “Forminator -> Forms” page in your site’s back-end
    – click on a little “gear” icon next to the form in question
    – select “Export” option
    – copy given export code and paste it at?https://pastebin.com
    – include link to that paste in your response below.

    Note: this export will not include any data that is already submitted – they’ll stay safely on your site and we don’t need them anyway.

    Kind Regards,
    Saurabh

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @andya51,

    Since we haven’t heard from you for a while. I’ll mark this thread as resolved for now. Please feel free to re-open this thread if you need any further assistance.

    Regards,

    Nithin

    Thread Starter andya51

    (@andya51)

    Sorry, I didn’t see the original reply. I’ll do an export for you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.