method

RiduClient.collectionLiveValidation

Check unsaved collection fields on the server without saving them.

Arguments

ArgumentTypeDescription
collectionSlugThe collection slug from your Go configuration.
inputLiveValidationRequestThe unsaved data and field paths to check. Omit id for a new document; include the saved document ID to check an update.
optionsLiveValidationOptions<LocaleFor<Config>> | undefinedOptional. Exact locale, cancellation signal, and normal request options.

Returns

Resolves with evaluations for the requested fields. Each is checked with zero or more issues, or skipped with no issues. Invalid content is returned as feedback, while failed requests reject with the SDK’s normal errors. A checked response does not guarantee a later save.

Promise<LiveValidationEnvelope>

How it works

Runs only callbacks registered with LiveValidate. It does not save data, run defaults or save hooks, or invoke Validate callbacks.

The caller must pass admin access, read access, and the relevant create or update access rules. The server only checks fields the caller can read and edit.

Send the current form values, cancel superseded requests, and discard results from an older form state. Built-in admin forms handle this automatically.

Full signature

Related types

Related guides