View Issue Details

IDProjectCategoryView StatusLast Update
0009004mantisbtcustom fieldspublic2008-04-19 04:10
Reporterdjhillia Assigned Tovboctor  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.0.8 
Target Version1.2.0a1Fixed in Version1.2.0a1 
Summary0009004: Support enumeration custom fields exposed as radio buttons
Description

How to make the checkbox field type allow only a single value to be checked? This is very important for our implementation; I'm surprised the checkbox type doesn't behave this way as default.

TagsNo tags attached.

Activities

jreese

jreese

2008-03-24 21:34

reporter   ~0017448

The very definition of checkboxes implies the selection of one or many options at once, as opposed to radio buttons, which imply single choice sets. But if you want the user to only select one item, you can just use a list, which is more compact to display anyway.

djhillia

djhillia

2008-03-25 10:56

reporter   ~0017452

Thanks for the info, however please let me clarify. My users are confused by lists (I know, it's unbelievable) They need to be able to see the options at once, and I don't care about the wasted real estate. Your response prompted me to see if a radio button is available for custom fields, but it appears that they are not.

Any other suggestions for my custom field to show all options (i.e. not a drop-down list) and allow only one selection?

Thanks!

jreese

jreese

2008-03-25 14:05

reporter   ~0017453

I can really only think of one solution, and one hack. The better solution wolud be to request that paulr or someone on the team familiar with custom fields implement a radio-button type, and then upgrade your Mantis install to the latest version once that feature is in place.

The "bad" alternative, at the expense of upgradability, would be quicker to implement, and would require you manually editing your Mantis install to have the checkbox custom field output "<input type='radio'..." rather than "type='checkbox'". However, this will be more work for you to maintain when you decide to upgrade your copy of Mantis, as it will be overwritten.

The choice is yours...

vboctor

vboctor

2008-03-27 04:14

manager   ~0017468

Changed summary to reflect what is implemented, which is to add a new custom field type 'radio'. The radio type is an enumeration type that is exposed as radio buttons and hence allowing a single selection.

Fixed in svn:5139
http://mantisbt.svn.sourceforge.net/mantisbt/?rev=5139&view=rev