Loading...
 
Skip to main content

History: Drop Down - Radio Tracker Field

Source of version: 23 (current)

Copy to clipboard
            {syntax type="markdown"  editor="wysiwyg"} # Drop Down Tracker Field

This tracker field allows you to create a drop down list of values.

Put the values you want listed in a comma delimited list. Note: Do not leave spaces between the comma delimited items.

- Ex:Yes,No,Maybe **correct**
- Ex:Yes, No, Maybe **incorrect**


Tiki > 1.9.7: If you repeat a value, this value will be used as the default value and will be pre-populated in your tracker form. In the example below, there are four different values for the dropdown with "1-2" as the default value.

{img src="img/wiki_up/tracker-dropdown1.png" }

If the field is optional, an empty value will be automatically added at the top of the values. 
The options are automatically translated . See ((Interface translation (old))) to know how to add a translation.

Note that each value must be unique. IE: it is not possible to do 
{CODE()}0=false,1=true,1=almost true,0=almost false{CODE}

# Drop Down with other value

tiki>=1.9.7 
The field works as the Drop Down field, except that it proposes a text field to enter an alternative value

# Radio Tracker Field

tiki >= 2.0 
The field works like a drop down field but displays a radio choice. 
If you repeat a value, this value will be used as the default value and will be pre-populated in your tracker form. 
{img src="img/wiki_up/tracker_dropdown2.jpg" } 
If the first value of the option is the string '
', each option display will be on a different line - otherwise they will be on the same line (tiki>=2.1)

## Sample with default selected value and label

{CODE(color="tiki")}y=yes,y=yes,n=no{CODE}

# Multilingual

Each option in all the fields are translated before being displayed. See ((Multilingual trackers)).

## Sample with default selected value and label in non-latin language

{CODE(color="tiki")}y=כן,y=כן,n=לא{CODE}

# Very long lists

For very long lists, you can use ((Items List and Item Link Tracker Fields))

# Alias

- (alias(Drop Down / Radio Tracker Field))