method
TextListField.LiveValidate
Add a server check that provides feedback while this field is being edited.
Arguments
| Argument | Type | Description |
|---|---|---|
value | LiveValidator[[]string] | A non-nil callback returning validation messages, or an error if the check could not run. It receives unfinished form input and must be read-only. |
Returns
A new field definition with this live validator appended. Keep the returned definition; the original field is unchanged.
TextListFieldHow it works
LiveValidate preserves existing live checks. It does not register a save rule; use Validate separately to enforce the rule when saving.
The callback checks the whole ordered list. Return issues for this field; primitive items have no durable identities.
Full signature
func (f TextListField) LiveValidate(value LiveValidator[[]string]) TextListFieldRelated types
TextListFieldA configurable list of strings.
LiveValidatorCheck an unsaved field value on the server and return feedback before the author saves.