inarray

Compares the submitted value with the values in the array set in TypoScript.

array

Property:
array
Data type:
[array of numbers]
Description:

The array containing the values which will be compared with the incoming data.

Example:

array {
  1 = TYPO3 4.5 LTS
  2 = TYPO3 6.2 LTS
  3 = TYPO3 7 LTS
}

element

Description:
See general information for element.

error

Description:
See general information for error.
Default:
local language:”The value does not appear to be valid”

message

Description:
See general information for message.
Default:
local language:”Only a few values are possible”

showMessage

Description:
See general information for showMessage.

strict

Property:
strict
Data type:
boolean
Description:
The types of the needle in the haystack are also checked if strict = 1.
Default:
0

[tsref:(cObject).FORM->rules.inarray]