function
TextList
Add a field containing an ordered list of text values.
Example
field.TextList("sellingPoints").MinRows(1).MaxRows(8).MaxLength(120)Arguments
| Argument | Type | Description |
|---|---|---|
name | string | The stored field name. |
Returns
A TextListField definition. Call its methods to set item limits, list length, defaults, or callbacks.
TextListFieldHow it works
Order and duplicates are preserved. Strings are not trimmed. MinLength and MaxLength apply to each string, counting Unicode code points.
Required requires at least one item. MinRows and MaxRows count items; they do not limit each item’s value. An explicit empty list remains an empty array.
Validators and hooks receive the complete []string value. Use Array for items with child fields, or MultiSelect for choices from a predefined set.
Full signature
func TextList(name string) TextListFieldRelated types
TextListFieldA configurable list of strings.