[[PageOutline(2-5,Contents,pullout)]] = Adds support for a multiselection dropdown box as a custom field in a ticket == Description Plugin allowing custom fields in tickets with multiple selection mode. Predefined values must be defined for each field, from which multiple values can be selected by the user. The data is saved as a normal custom text field with the values separated by a single space (this way the normal trac ui will show the values in a sensible way too). Any spaces in the options is converted to '_' by default when saving the data. The selection component itself is using http://harvesthq.github.io/chosen/ to implement multiple selection in a more user friendly way. == Bugs/Feature Requests Existing [report:9?COMPONENT=MultiSelectFieldPlugin bugs and feature requests]. If you have any issues, create a [http://trac-hacks.org/newticket?component=MultiSelectFieldPlugin&owner=ollika new ticket]. [[TicketQuery(component=MultiSelectFieldPlugin&group=type,format=progress)]] == Download Check out the [http://trac-hacks.org/svn/multiselectfieldplugin plugin] using Subversion or easy_install etc. or [source:multiselectfieldplugin browse the source] with Trac. or Download the [download:multiselectfieldplugin zipped source]. == Example Install and enable plugin. Then add a new custom field to your `conf/trac.ini`. For example this will add a new field supporting multiple selection called 'environment' with some predefined values: {{{ #!ini [ticket-custom] environment = text environment.format = list environment.label = Environment environment.multiselect = true environment.options = Android|iPhone|iPad|Windows|Linux|MacOs environment.order = 2 }}} [[Image(multiselectfield.2.png)]] NOTE: Adding new selection choices is always fine. However, be careful when changing the existing options of a field when there is existing data with the old options. When you view a ticket the ui will only show currently valid options. Any old options will be cleared when the ticket is modified and the field in question has been changed. == Plugin config The default config should be fine for most people, but if you need to change how the data is saved you can add these options under `[multiselectfield]` in `conf/trac.ini`: `simple_selection` (default value: false)[[BR]] Instead of the more advanced "chosen" selection box, use a standard html multiselection box. `data_delimiter` (default value: ' ')[[BR]] The delimiter that is used when storing the data (as the selected options are appended to a single custom text field). Space is used by default as values separated by space will be recognized by the custom text field in list mode as separate values. NOTE: changing this option when there is already data saved with other options value is probably not a good idea. `strip_whitespace` (default value: true)[[BR]] Defined whether whitespace in the names of the predefined selectable values is removed before saving the data (whitespace will be converted to underscores). This should be enabled when using white space as data delimiter. NOTE: changing this option when there is already data saved with other options value is probably not a good idea. == Recent Changes [[ChangeLog(multiselectfieldplugin, 3)]] == Author/Contributors '''Author:''' [wiki:ollika] ([http://suikki.wordpress.com]) [[BR]] '''Maintainer:''' [[Maintainer]] [[BR]] '''Contributors:'''