• Resolved doog

    (@doog)


    When I create a Jetpack Contact Form and use radio buttons, is there a way to designate ‘selected’ for a radio button? Looked at all the doc, no indication of how. Tried a few hacks, no go. Would think this is a good feature add. Thank you for an outstanding integrated tool!!

    https://wordpress.org/plugins/jetpack/

Viewing 1 replies (of 1 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    You can use the default shortcode parameter to define a default value for the Radio buttons’ field. Start by looking for the Radio field in your shortcode (it will start with [contact-field label='something' type='radio' options='), and then add a new default parameter after the options, containing the default option. It has to match one of the existing radio button options, of course.

    Here is an example:
    [contact-field label='Make a choice' type='radio' options='Bacon,Eggs,Both' default='Both'/]

    And here is the output:
    http://i.wpne.ws/evsn

Viewing 1 replies (of 1 total)

The topic ‘How do you indicate the default radio button?’ is closed to new replies.