createGroupField
Create a group field for Payload CMS with specified name, label, required status, and validation function. Use to structure related fields under a single group in the admin UI.
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 | |
| validate | Yes | Custom validation function that returns true if valid or an error message string if invalid |