Defect #17003

Option to display bool custom fields as a single checkbox

Added by Alex Wüst over 4 years ago. Updated over 4 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:Custom fields
Target version:2.5.2
Resolution:Fixed Affected version:2.5.1

Description

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.

cfield-bool.PNG (2.15 KB) Alex Wüst, 2014-05-28 11:08

cfield-bool-setting.PNG (6.46 KB) Alex Wüst, 2014-05-28 11:08


Related issues

Related to Redmine - Patch #17392: Japanese translation update (r13217) Closed
Related to Redmine - Defect #16476: Custom checkbox visibility formating Closed

Associated revisions

Revision 13216
Added by Jean-Philippe Lang over 4 years ago

Option to render boolean custom fields as a single check box or radio buttons (#17003).

Revision 13217
Added by Jean-Philippe Lang over 4 years ago

Adds translation string (#17003).

Revision 13220
Added by Toshi MARUYAMA over 4 years ago

Japanese translation updated by Go MAEDA (#17392, #17003)

History

#1 Updated by Go MAEDA over 4 years ago

+1

#2 Updated by Marc M. over 4 years ago

+1

#3 Updated by Toshi MARUYAMA over 4 years ago

  • Target version set to 2.5.2

#4 Updated by Jean-Philippe Lang over 4 years ago

Edit the custom field and mark it as required. Then you won't have to "empty" option.
Still, the custom field will be displayed with 2 radio buttons, do you think that a checkbox is better?

#5 Updated by Go MAEDA over 4 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 over 4 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

Versus
[ ] Did you find this helpful?

#7 Updated by Marc M. over 4 years ago

I agree with GO Maeda.
When the type is "checkbox" it should be a checkbox, but for other cases or preferences you could add radio buttons a additonal displayoption.

#8 Updated by Jean-Philippe Lang over 4 years ago

  • Status changed from New to Resolved
  • Assignee set to Jean-Philippe Lang
  • Resolution set to Fixed

Fixed in r13216, you are now able to choose between a single checkbox or radio buttons.

#9 Updated by Toshi MARUYAMA over 4 years ago

  • Related to Patch #17392: Japanese translation update (r13217) added

#10 Updated by Go MAEDA over 4 years ago

Confirmed that checkbox became available again. Thanks a lot!

#11 Updated by Jean-Philippe Lang over 4 years ago

  • Status changed from Resolved to Closed

Merged, thanks for your feedback.

#12 Updated by Jean-Philippe Lang over 4 years ago

  • Subject changed from Bool custom field may also be empty + checkbox shows as radio buttons to Option to display bool custom fields as a single checkbox

#13 Updated by Toshi MARUYAMA over 4 years ago

  • Related to Defect #16476: Custom checkbox visibility formating added

Also available in: Atom PDF