WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
[resolved] Cannot set default value on radio (4 posts)

  1. pealo86
    Member
    Posted 2 years ago #

    I am using the following code however CF7 isn't recognise it and is simply outputting the string onto the frontend

    [radio* ShiftSystem id:shift-system default:1 "Yes" "No"]

    I have tried the 'default' parameter in various parts of the string however nothing seems to work. Can anyone see what I'm doing wrong?

    http://wordpress.org/extend/plugins/contact-form-7/

  2. jrm213
    Member
    Posted 2 years ago #

    Hi,

    You can't put radio*
    [radio* ShiftSystem id:shift-system default:1 "Yes" "No"]

    Since it's a radio button it is automatically required if a default is set.

  3. jrm213
    Member
    Posted 2 years ago #

    Sorry forgot to edit my copy,
    so just use:
    [radio ShiftSystem id:shift-system default:1 "Yes" "No"]

  4. pealo86
    Member
    Posted 2 years ago #

    Ahhh I see! Sorted now, thanks :D

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.