Feature request #9046
Edit form widget: better radio button than checkbox
Status: | Rejected | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | GUI | ||
Pull Request or Patch supplied: | No | Resolution: | invalid |
Easy fix?: | No | Copied to github as #: | 17700 |
Description
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.
History
#1 Updated by Jürgen Fischer about 11 years ago
Um, using something other than a checkbox for a checkbox doesn't make any sense to me.
#2 Updated by Paolo Cavallini about 11 years ago
That's the point: IMHO the current behaviour is that of a radio button, not of a checkbox.
See e.g. http://en.wikipedia.org/wiki/Radio_button and http://en.wikipedia.org/wiki/Check_box
#3 Updated by Jürgen Fischer about 11 years ago
Paolo Cavallini wrote:
That's the point: IMHO the current behaviour is that of a radio button, not of a checkbox.
See e.g. http://en.wikipedia.org/wiki/Radio_button and http://en.wikipedia.org/wiki/Check_box
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.
#4 Updated by Paolo Cavallini about 11 years ago
Not a big deal, agreed. The main thing is that it is not clear to the user what happens if he clicks or not:
field1 |_|
while a checkbox with labels would be more obvious:
field1 O yes O no
#5 Updated by Matthias Kuhn about 11 years ago
-1, sorry
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 :) )
#6 Updated by Jürgen Fischer about 11 years ago
- Resolution set to invalid
- Status changed from Open to Rejected
The checkbox edit widget is there to produce checkboxes - hence the name. Using anything else could be considered a bug.