Multiselect

The “Multiselect” type generates a select field where multiple items can be chosen.

It corresponds with the TCA renderType='selectMultipleSideBySide'.

Properties

default

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

Default value set if a new record is created.

items

| Required: true | Type: array | Default: ‘’ |

Contains the elements for the selector box. Each item is an array with the first being the value transferred to the input field, and the second being the label in the select drop-down (LLL reference possible).

Example:

items:
  'one': 'The first'
  'two': 'The second'
  'three': 'The third'
maxItems

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

Maximum number of child items. Defaults to a high value. JavaScript record validation prevents the record from being saved if the limit is not satisfied.

minItems

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

Minimum number of child items. Defaults to 0. JavaScript record validation prevents the record from being saved if the limit is not satisfied.

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.