max

max
Path

$GLOBALS['TCA'][$table]['columns'][$field]['config']

Type

integer

Scope

Display

Value for the "maxlength" attribute of the <input> field. Javascript prevents adding more than these number of characters.

If the form element edits a varchar(40) field in the database you should also set this value to 40.

Note

If you reduce this value and there is already content longer then max the input will be cropped without notice on saving.