Feature request #9046
Edit form widget: better radio button than checkbox
|Pull Request or Patch supplied:||No||Resolution:||invalid|
|Easy fix?:||No||Copied to github as #:||17700|
The checkbox widget adds a single box; it would seem more appropriate to add two radio buttons, with their respective values (e.g. Yes/No) besides.
IMHO a checkbox is a non-exclusive choice among a list, a radio button is an alternative between two items. If this is true, the current behaviour of the widget is one of a radio button, so a radio button widget would be better.
#3 Updated by Jürgen Fischer about 8 years ago
Paolo Cavallini wrote:
Then what's you point? Currently you have a checkbox edit type that mimics a checkbox. And that checkbox can two states for which you can define the attribute value that should represent either case.
#5 Updated by Matthias Kuhn about 8 years ago
A checkbox as a widget that allows to choose between two states of an option is straight-forward and well-known to average users.
Two radio-buttons could be considered an alternative approach for the same but so could a combobox or a list widget.
IMO we should keep this one
(and if someone feels like implementing alternatives, feel free but checkbox should stay the default widget. And while he is doing this, please port the widget type to the new API. Thank you :) )