95126c2b89721fe7b6ba76165bbbc45b8c80ec64
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Documentation / Configuration / Rules / Inarray / Index.rst
1 .. include:: ../../../Includes.txt
2
3
4 .. _reference-rules-inarray:
5
6 =======
7 inarray
8 =======
9
10 Compares the submitted value with the values in the array set in TypoScript.
11
12
13 .. _reference-rules-inarray-array:
14
15 array
16 =====
17
18 :aspect:`Property:`
19     array
20
21 :aspect:`Data type:`
22     [array of numbers]
23
24 :aspect:`Description:`
25     The array containing the values which will be compared with the incoming
26     data.
27
28     **Example:**
29
30     .. code-block:: html
31
32       array {
33         1 = TYPO3 4.5 LTS
34         2 = TYPO3 6.2 LTS
35         3 = TYPO3 7 LTS
36       }
37
38
39 .. _reference-rules-inarray-breakonerror:
40
41 breakOnError
42 ============
43
44 :aspect:`Description:`
45     See general information for :ref:`reference-validation-attributes-breakonerror`.
46
47
48 .. _reference-rules-inarray-element:
49
50 element
51 =======
52
53 :aspect:`Description:`
54     See general information for :ref:`reference-validation-attributes-element`.
55
56
57 .. _reference-rules-inarray-error:
58
59 error
60 =====
61
62 :aspect:`Description:`
63     See general information for :ref:`reference-validation-attributes-error`.
64
65 :aspect:`Default:`
66     *local language:*"The value does not appear to be valid"
67
68
69 .. _reference-rules-inarray-message:
70
71 message
72 =======
73
74 :aspect:`Description:`
75     See general information for :ref:`reference-validation-attributes-message`.
76
77 :aspect:`Default:`
78     *local language:*"Only a few values are possible"
79
80
81 .. _reference-rules-inarray-showmessage:
82
83 showMessage
84 ===========
85
86 :aspect:`Description:`
87     See general information for :ref:`reference-validation-attributes-showmessage`.
88
89
90 .. _reference-rules-inarray-strict:
91
92 strict
93 ======
94
95 :aspect:`Property:`
96     strict
97
98 :aspect:`Data type:`
99     boolean
100
101 :aspect:`Description:`
102     The types of the needle in the haystack are also checked if strict = 1.
103
104 :aspect:`Default:`
105     0
106
107 [tsref:(cObject).FORM->rules.inarray]
108