Search
ArrayField
ArrayField
A CMS Collection field that stores an ordered list of items sharing the nested schema in fields. An array with a single image field is displayed as a Gallery in the CMS.
Nested fields can be booleans, colors, dates, files, formatted text, images, links, numbers, or strings. Enums, collection references, and arrays cannot be nested.
In unmanaged collections, update nested fields with setAttributes({ fields }). Entries with an id keep the existing nested field and its values, entries without one add a new nested field, and nested fields left out are removed together with their values. The list also sets the nested field order. Omit fields to keep the schema unchanged.
Methods & Properties
The nested fields shared by all items in this array. Their setAttributes and remove methods update the schema and leave sibling fields unchanged.
Whether this field is required. Required fields must have a value set on every CMS item.
The unique identifier of the field.
The display name of the field as shown in the UI.
Use to rename any field:
Remove this field.