method
UploadsField.ReplaceLiveValidators
Replace this field’s live server checks, or remove them all.
Arguments
| Argument | Type | Description |
|---|---|---|
values | []LiveValidator[[]operation.ID] | 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.
UploadsFieldHow it works
Use this when customizing an existing field definition. LiveValidate appends instead of replacing.
Full signature
func (f UploadsField) ReplaceLiveValidators(
values ...LiveValidator[[]operation.ID],
) UploadsFieldRelated types
UploadsFieldUploadsField configures links to several files in the target upload collection.
LiveValidatorCheck an unsaved field value on the server and return feedback before the author saves.
IDID is the logical write value of a singular relationship. It is distinct from the potentially populated logical read value.