Restricting the Number of Items in an Array Field
Learn how to restrict the number of items that can be defined in the field.
In some cases, you may want to restrict the number of items that can be defined in the field
details mask of an array field. To define the maximum number of items that can be selected from
an array field set the arrayFieldMaxItems
value in the extended options for a
ListInput
widget.
The following sample configuration below restricts the number of fields in the array field to one item:
{ 'widgetOptions': { 'arrayFieldMaxItems': 1 } }