View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0009004 | mantisbt | custom fields | public | 2008-03-24 17:46 | 2008-04-19 04:10 |
Reporter | djhillia | Assigned To | vboctor | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.0.8 | ||||
Target Version | 1.2.0a1 | Fixed in Version | 1.2.0a1 | ||
Summary | 0009004: 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. | ||||
Tags | No tags attached. | ||||
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. |
|
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! |
|
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... |
|
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 |
|