Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v10 here: TYPO3 ELTS.
max
max
-
- Type
- integer
- Path
- $GLOBALS['TCA'][$table]['columns'][$field]['config']
- Scope
- Display
- RenderType
- textTable, default
Adds the HTML5 attribute "maxlength" to a textarea. Prevents the field from adding more than specified number of characters. This is a client side restriction, no server side length restriction is enforced.
Does not apply for RTE fields.
Examples
Textarea with a maximum of 30 characters
[
'columns' => [
'text_11' => [
'exclude' => 1,
'label' => 'text_11',
'description' => 'max=30',
'config' => [
'type' => 'text',
'cols' => 30,
'rows' => 4,
'max' => 30,
],
],
],
]
Copied!