DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

length

Checks if the submitted value is of a certain length. A minimum length can be used or a minimum and a maximum length.

element

Description:
See general information for element.

error

Description:

See general information for error.

For this specific rule the default error message consists of two parts, the second one will only be added when maximum is set. This functionality is not possible when defining an own message as shown below. The markers %minimum and %maximum will be replaced with the values set by TypoScript.

Default:
local language:"The value is less than %minimum characters long (, or longer than %maximum)"

maximum

Property:
maximum
Data type:
integer
Description:
The maximum length of the submitted value. Maximum can only be used in combination with minimum.

message

Description:

See general information for message.

For this specific rule the default message consists of two parts, the second one will only be added when maximum is set. This functionality is not possible when defining an own message as shown below. The markers %minimum and %maximum will be replaced with the values set by TypoScript.

Default:
local language:"The length of the value must have a minimum of %minimum characters(, and a maximum of %maximum)"

minimum

Property:
minimum
Data type:
integer
Description:
The minimum length of the submitted value.

showMessage

Description:
See general information for showMessage.

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