createTextareaField
Creates a textarea field in Payload CMS with configurable label, required status, and length 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 | |
| minLength | Yes | Minimum length of the text | |
| maxLength | Yes | Maximum length of the text | |
| validate | Yes | Custom validation function that returns true if valid or an error message string if invalid |