method
RiduClient.collectionLiveValidation
Check unsaved collection fields on the server without saving them.
Arguments
| Argument | Type | Description |
|---|---|---|
collection | Slug | The collection slug from your Go configuration. |
input | LiveValidationRequest | The unsaved data and field paths to check. Omit id for a new document; include the saved document ID to check an update. |
options | LiveValidationOptions< | Optional. 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
RiduClient.collectionLiveValidation<Slug extends CollectionSlug<Config>>(
collection: Slug,
input: LiveValidationRequest,
options?: LiveValidationOptions<LocaleFor<Config>>,
): Promise<LiveValidationEnvelope>Related types
CollectionSlugThe generated union of collection slugs.
LiveValidationRequestThe unsaved form values and field paths sent for live server validation.
LiveValidationOptionsChoose the exact content locale and cancellation signal for a live validation request.
LiveValidationEnvelopeLive validation results returned by the collection and global SDK methods.