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

  1. Rodorm
    Posted 3 years ago #


    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.


  2. Takayuki Miyoshi
    Plugin Author

    Posted 3 years 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

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.