Option to display bool custom fields as a single checkbox
|Assignee:||Jean-Philippe Lang||% Done:|
Since our update to 2.5.1 the custom fields with type "boolean" have three possible values. true, false and empty. Bool should have only true and false as it was before.
Also when we set the custom field to show as checkboxes, it shows up as radio buttons.
Option to render boolean custom fields as a single check box or radio buttons (#17003).
#5 Updated by Go MAEDA almost 7 years ago
Jean-Philippe Lang wrote:
Edit the custom field and mark it as required. Then you won't have to "empty" option.
Thank you for letting me know how to turn "empty" option off.
Still, the custom field will be displayed with 2 radio buttons, do you think that a checkbox is better?
- Radio buttons requires more spaces on the screen than check boxes.
- It is hard for me to imagine a situation in need of "empty" option for boolean and I am afraid that three values for boolean is quite confusing.
#6 Updated by Michael Esemplare almost 7 years ago
Who says checkboxes can only have two states :D
I find that displaying radio buttons after choosing checkboxes is a bit misleading. You could provide both options.
Some people might see the following better as radio:
Did you find this helpful? [ ] Yes [ ] No [ ] N/A
[ ] Did you find this helpful?