createArrayField
Create an array field for Payload CMS with configurable name, label, validation rules, and row count constraints.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the field, used as the property name in the database | |
| type | Yes | The type of field | |
| label | Yes | The label shown in the admin UI | |
| required | Yes | Whether this field is required | |
| minRows | Yes | Minimum number of rows | |
| maxRows | Yes | Maximum number of rows | |
| validate | Yes | Custom validation function that returns true if valid or an error message string if invalid |