• Resolved ENBertussi

    (@enbertussi)


    Hi there folks,

    I’m trying to understand how I can send radio button data to mailchimp so I can segment and automate.

    my use case is this:

    We have a landing page with a form.
    in the form we’d like to use cf7 to gather some information and have users self identify or ‘sort’ themselves into different demographics so we can stream to them a more suitable series of 8+ emails.

    what I am having trouble doing is seeing radio button data showing up in mailchimp.

    what we have in the form in cf7 is

    What best describes your role? (required)
    [radio radio-ROLE mc4wp-ROLE "Tech Professional" "LnD Professional"]

    Here is a screen shot of the list field merge tag data from mailchimp.

    https://www.dropbox.com/s/bndr884dyrkrkhj/radio%20button%20mailchimp.PNG?dl=0

    here is a screen shot of segmenting for automation to build different streams of automation emails that are specific to the “Role” we are engaging with.

    https://www.dropbox.com/s/o0ocxleh5bu4ewx/ROLE%20segment.PNG?dl=0

    I’m uncertain what I have done wrong with my syntax here.

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

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

    (@lapzor)

    Hi,

    I think in that example you are setting the name of the field to radio-ROLE.
    The name should be mc4wp-ROLE.

    [radio mc4wp-ROLE “Tech Professional” “LnD Professional”]

    Hope that helps. If you have any questions, please let us know!

    Thread Starter ENBertussi

    (@enbertussi)

    Tried that it didn’t work, so I used this approach https://kb.mc4wp.com/add-group-choice-cf7-forms/

    but I can’t seem to make or demand that the fields are required… it’s totally working injecting into mailchimp and firing the automation for each choice.. but I need to ensure users are forced to select one of the choices..

    I also found the code for adding a script to force required field in github, but it was for check boxes and not radio buttons…

    not sure what I should be doing now… using the form builder in MC4WP finally got mailchimp catching the data set.. but i can’t seem to ensure that a selection is made by users other than social nudge with “(required)”

    What best describes your role? (required)
            <input name="mc4wp-INTERESTS[xxxxxxxxxx]" type="radio" value="xxxxxxxxxx" required="1"> <span>Tech Professional</span>
            <input name="mc4wp-INTERESTS[xxxxxxxxxx]" type="radio" value="xxxxxxxxxx" required="1"> <span>L&D Professional</span>
    Plugin Contributor Lap

    (@lapzor)

    If you use radio buttons you could just make it a radio-group and pre-check 1 radio button. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/radio

    Else you will need some custom Javascript code to validate if at least 1 is checked.
    Here is an exampel how we did that with checkboxes and javascript: https://kb.mc4wp.com/interest-groupings-required-field/
    We do not give further support on custom code like that.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Additional CF7 Fields from Radio buttons to mailchimp?’ is closed to new replies.