Show last authors
1 {{box cssClass="floatinginfobox" title="**Contents**"}}
2 {{toc/}}
3 {{/box}}
4
5 Static List allows to store and display single-select or multi-select fields that can be displayed as select, checkbox, radio or suggests fields.
6
7 = Properties =
8
9 We list in the following the properties of Static List and their meanings.
10
11 == Display Type ==
12
13 Several types are available for displaying a static list:
14
15 * **select**: display the list as an html select
16 * **checkbox**: display the list as checkboxes
17 * **radio**: display the list as a radio button
18 * **input**: display a simple input text. Note that this option might be used in combination with [[Use suggest>>||anchor="HUseSuggest"]] and [[Free text>>||anchor="HFreetext"]], to allow entering custom values.
19
20 == Multiple select ==
21
22 If checked, it allows to select multiple values. Else it only allow to select one value.
23
24 == Use suggest ==
25
26 This property only works in combination with [[input display type>>||anchor="HDisplayType"]]: it allows to display a suggest list when the user is typing in the input text, and to select from it.
27
28 == Allow large strings ==
29
30 This property has been introduced in {{code}}XWiki 11.5RC1{{/code}} and allow to store values with more than 255 characters.
31
32 == Size of the corresponding form element in edit mode ==
33
34 This property is useful only with *select* display, it allows to specify the number of options to display in the select.
35
36 == Multiselect separators (for editing) ==
37
38 This property allows to specify some operators used to distinguish multiple values in a single string, in edit mode.
39 By default, the value accepted separators are "|", "," and " ".
40 For example, if you send the value "Foo|Bar|Baz" in edit, it would be considered as the three values: Foo, Bar and Baz.
41
42 == Join separator (for display) ==
43
44 This property allows to specify a string that will be used to join the values selected in the list.
45 For example if this property contains the value "+++", and the selected value are Foo, Bar et Baz, the produced output will be: Foo+++Bar+++Baz.
46
47 == Sort ==
48
49 Allows to sort the options.
50
51 == Free text ==
52
53 This option should be used in combination with an [[input display type>>||anchor="HDisplayType"]].
54 If set to allows or discouraged, it allows user to type a custom text that is not part of the [[predefined values>>||anchor="HValues"]].
55 If set to forbidden, only the values that are specified can be used.
56
57 == Relational Storage ==
58
59 {{todo/}}
60
61 == Cache ==
62
63 {{todo/}}
64
65 == Default Value ==
66
67 The value selected by default.
68
69 == Values ==
70
71 The list of values to propose in the Static List.
72 The [[edit separators>>||anchor="HMultiselectseparators28forediting29"]] must be used to separate the different values.
73 Note that if [[Free text>>||anchor="HFreetext"]] is properly set, users might also be able to enter a custom value.

Get Connected