wiki:MultiSelectFieldPlugin

Version 6 (modified by rjollos, 3 years ago) (diff)

Fixed typo. Added syntax highlighting.

MultiSelectFieldPlugin

Description

Plugin allowing custom fields in tickets supporting multiple selection mode. that have a set of predefined values. Each field can be assigned multiple values that can be selected.

The data is saved as a normal text field with the values separated by '|'.

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 bugs and feature requests for MultiSelectFieldPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from [download:multiselectfieldplugin here].

Source

You can check out MultiSelectFieldPlugin from here using Subversion, or browse the source with Trac.

Example

Install and enable plugin. Then add a new custom field to your conf/trac.ini

For example:

[ticket-custom]
environment.format = list
environment = text
environment.label = Environment
environment.multiselect = true
environment.options = Android|iPhone|iPad|Windows|Linux|MacOs
environment.order = 2

This will add a new field supporting multiple selection called 'environment' with some predefined values.

TODO

  • Graphics are glitcing a bit with the remove 'x' button.
  • Behaviour when removing predefined option that is in use in existing tickets is not well defined or tested.

Recent Changes

15007 by ollika on 2015-11-01 15:30:48
Added an option to use standard html selection box
15006 by ollika on 2015-10-31 15:32:52
Fixed issue with similar option names. Fixed field revert functionality. Updated chosen version. Fixed options with whitespace. Added option to define the data delimiter
13144 by ollika on 2013-05-15 13:21:53
Removed unnecessary logging that caused problems with IE (Ticket #11066).
(more)

Author/Contributors

Author: ollika (http://suikki.wordpress.com)
Maintainer: ollika
Contributors:

Attachments (2)

Download all attachments as: .zip