Number

The “Number” type generates a simple <input> field, which allows only 0-9 characters in the field.

It corresponds with the TCA type='input' (default) and eval='num'.

Properties

default

| Required: false | Type: double | Default: 0 |

Default value set if a new record is created.

size

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

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

required

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

If set, the field will become mandatory.

trim

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

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