• Resolved jon_penny

    (@jon_penny)


    This looks like a great plugin which can be customised easily.

    Is it possible to add radio buttons to the form? The newsletter signup I have requires users to pick if they are over or under a certain for legal reasons.

    I have setup up the options in Mailchimp via “settings > list fields and *|merge|* tags” section.

    Thanks.

    http://wordpress.org/plugins/mailchimp-for-wp/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Hi,

    Yes, it is possible to add radio buttons to the forum. Just give the radio buttons the exact same name attribute as the name of your merge field tag.

    Example:

    <input type="radio" name="mergeTagName" value="option 1" />
    <input type="radio" name="mergeTagName" value="option 2" />
    etc..

    (I left labels and other stuff out in this example)

    Good luck.

    Danny

    Thread Starter jon_penny

    (@jon_penny)

    Hi Danny,

    Thanks for the reply. I have set up the inputs as follows:

    <p><input type="radio" name="mc4wp_f%N%_AGECHECK" value="13 and over" /><label>Over 13? I confirm that I am over 13 years old.</label></p>
    <p><input type="radio" name="mc4wp_f%N%_AGECHECK" value="Under 13" /><label>Under 13? Please ask for your parent/gaurdians permission.</label></p>

    Is this correct?

    Thanks,
    Jon

    Plugin Author Danny van Kooten

    (@dvankooten)

    Hi Jon,

    No sorry, it is not correct. Here is what you should do.

    1. Go to MailChimp.com and log into your account.
    2. Go to Lists, hover the list you want to use and select Settings from the drop-down menu on the right.
    3. Click List fields and *|MERGE|* tags
    4. Check the value in the column Put this tag in your content: for the age option you mentioned. This is what the name attribute of your radio inputs should be.

    For example, if the field name is AGECHECK.

    <input type="radio" name="agecheck" value="under 13" />
    <input type="radio" name="agecheck" value="over 13" />

    Ps. to add working labels, use this.

    <input type="radio" name="agecheck" value="under 13" id="mc4wp_f%n_radio_u13" /><label for="mc4wp_f%n_radio_u13">Under 13</label>
    <input type="radio" name="agecheck" value="over 13" id="mc4wp_f%n_radio_o13" /><label for="mc4wp_f%n_radio_o13">Over 13</label>

    Hope that helps!

    Danny

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add radio buttons’ is closed to new replies.