method
GroupField.ReplaceLiveValidators
Replace this field’s live server checks, or remove them all.
Arguments
| Argument | Type | Description |
|---|---|---|
values | []LiveValidator[store.Value] | The complete replacement list of non-nil callbacks. Pass no arguments to disable live checks for this field. |
Returns
A new field definition with the supplied live checks. Save validators and other field settings are preserved.
GroupFieldHow it works
Use this when customizing an existing field definition. LiveValidate appends instead of replacing.
Full signature
func (f GroupField) ReplaceLiveValidators(
values ...LiveValidator[store.Value],
) GroupFieldRelated types
GroupFieldGroupField configures a nested object containing the supplied fields.
LiveValidatorCheck an unsaved field value on the server and return feedback before the author saves.
ValueAn immutable scalar, object, list, or populated document value.