[TASK] Remove old language labels in EXT:setup
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Documentation / Tests / Request / option.txt
1 form.request.option = FORM
2 form.request.option {
3         method = post
4
5         rules {
6                 1 = required
7                 1 {
8                         element = textlineField
9                 }
10         }
11
12         # Selected test
13         10 = FIELDSET
14         10 {
15                 legend = Selected test
16                 10 = SELECT
17                 10 {
18                         1 = OPTION
19                         1 {
20                                 data = Select me
21                                 value = option2
22                         }
23                         2 = OPTION
24                         2 {
25                                 data = Deselect me
26                                 selected = selected
27                                 value = option1
28                         }
29                 }
30         }
31
32         # Regular test
33         20 = FIELDSET
34         20 {
35                 legend = Regular test
36                 10 = SELECT
37                 10 {
38                         1 = OPTION
39                         1 {
40                                 data = Option 1
41                                 value = option1
42                         }
43                         2 = OPTION
44                         2 {
45                                 data = Option 2
46                                 value = option2
47                         }
48                         3 = OPTION
49                         3 {
50                                 data = Option 3
51                                 value = option3
52                         }
53                 }
54         }
55
56         # Multiple test
57         30 = FIELDSET
58         30 {
59                 legend = Regular test
60                 10 = SELECT
61                 10 {
62                         multiple = multiple
63                         1 = OPTION
64                         1 {
65                                 data = Option 1
66                                 value = option1
67                         }
68                         2 = OPTION
69                         2 {
70                                 data = Option 2
71                                 value = option2
72                         }
73                         3 = OPTION
74                         3 {
75                                 data = Option 3
76                                 value = option3
77                         }
78                 }
79         }
80
81         # Multiple selected test
82         40 = FIELDSET
83         40 {
84                 legend = Regular test
85                 10 = SELECT
86                 10 {
87                         multiple = multiple
88                         1 = OPTION
89                         1 {
90                                 data = Uncheck me 1
91                                 value = option1
92                                 selected = selected
93                         }
94                         2 = OPTION
95                         2 {
96                                 data = Check me
97                                 value = option2
98                         }
99                         3 = OPTION
100                         3 {
101                                 data = Uncheck me 2
102                                 value = option3
103                                 selected = selected
104                         }
105                 }
106         }
107
108         # A textline which must be empty to test the above
109         50 = FIELDSET
110         50 {
111                 legend = Leave empty to get the form back after submitting
112                 10 = TEXTLINE
113                 10 {
114                         name = textlineField
115                         label = Leave me empty
116                 }
117         }
118
119         # Submit
120         60 = FIELDSET
121         60 {
122                 10 = SUBMIT
123                 10 {
124                         value = Submit
125                 }
126         }
127 }