Text

The “Text” type generates a simple <input> field, possibly with additional features applied.

It corresponds with the TCA type='input' (default), however special variants are defined as own field types.

Properties

autocomplete

| Required: false | Type: boolean | Default: ‘false’ |

If set, the autocomplete feature is enabled for this field.

default

| Required: false | Type: string | Default: ‘’ |

Default value set if a new record is created.

max

| Required: false | Type: integer | Default: ‘700’ |

Value for the “maxlength” attribute of the <input> field. Javascript prevents adding more than the given number of characters.

placeholder

| Required: false | Type: string | Default: ‘’ |

Placeholder text for the field.

required

| Required: false | Type: boolean | Default: ‘false’ |

If set, the field will become mandatory.

size

| Required: false | Type: integer | Default: ‘20’ |

Abstract value for the width of the <input> field.

trim

| Required: false | Type: boolean | Default: ‘false’ |

If set, the PHP trim function is applied on the field’s content.