TextLine Field Type¶
This Field Type makes possible to store and retrieve a single line of unformatted text. It is capable of handling up to 255 characters.
|Expected input type
PHP API Field Type¶
The Value class of this Field Type contains the following properties:
|This property will be used for the text content.
A TextLine's string representation is the
$text property's value, as a string.
The constructor for this Value object will initialize a new Value object with the value provided. It accepts a string as argument and will import it to the
The input passed into this Field Type is subject to validation by the
StringLengthValidator. The length of the string provided must be between the minimum length defined in
minStringLength and the maximum defined in
maxStringLength. The default value for both properties is 0, which means that the validation is disabled by default.
To set the validation properties, the
validateValidatorConfiguration() method needs to be inspected, which will receive an array with
maxStringLength like in the following representation:
1 2 3 4 5