WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
[resolved] Radio buttons as mandatory item? (2 posts)

  1. Rodorm
    Member
    Posted 1 year ago #

    Hello,

    I need radio buttons as mandatory item, but it doesn't seem to work. If I put a star behind the item, the item isn't shown anymore. Example:

    [radio* radio-548 "Ja" "Nein"]

    Is that a bug, or is it just not implemented?

    Edit: Ok, I just read that it isn't implemented, because "a radio button is a required field by nature". That might be the case in theory, but de facto, I cannot replace it by a default value due to legal reasons, so I need to leave it unselected, but I also need to force the user to make a selection. I hope you understand that in this case, a technical implementation of a mandatory radio button field is necessary despite the theoretical W3C specs.

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

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    Mandatory radio button is not only theoretical restriction. It doesn't work like you need.

    Instead of radio*, I suggest using checkbox* with exclusive option.

    Checkboxes, Radio Buttons and Menus

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.