Skip to content
DocsReference
DocsReferenceGitHub

Search Ridu documentation

tab controls

Loading search…

Search will be ready in a moment.

No matching results

Try a different term or search every section.

Loading search.

Preparing index…View all results →↑↓ move↵ openesc close
Get started
Modules/field
MCheckboxField.LiveValidators

Go packages

riducorefieldoperationqueryschemastorestoragemigrationmigration/payloadprotocol (Go)plugintestconformance

Official adapters

postgressqlitemongodbstorage/localstorage/s3

Official plugins

graphqlmcprichtextseoformbuilder@riducms/plugin-richtext@riducms/plugin-seo@riducms/plugin-form-builder@riducms/plugin-graphql

TypeScript packages

@riducms/sdk@riducms/sveltekit@riducms/protocol@riducms/plugin@riducms/build@riducms/ui@riducms/admin@riducms/translations@riducms/cli/run

Tooling

ridu CLI
Allfieldriducoreoperationqueryschemastorestoragemigrationmigration/payloadprotocol (Go)plugintestpostgressqlitemongodbgraphqlmcprichtextseoformbuilderstorage/localstorage/s3conformance@riducms/sdk@riducms/sveltekit@riducms/protocol@riducms/plugin@riducms/build@riducms/ui@riducms/plugin-richtext@riducms/plugin-seo@riducms/plugin-form-builder@riducms/plugin-graphql@riducms/admin@riducms/translations@riducms/cli/runridu CLI
All 929CheckboxField.ReplaceLiveValidatorsCheckboxField.LabelCheckboxField.LabelTranslationsCheckboxField.LiveValidateCheckboxField.LiveValidatorsCheckboxField.LocalizedCheckboxField.PrependHooksCheckboxField.Private

method

CheckboxField.LiveValidators

Read the live server checks attached to this field.

ReturnsHow it worksFull signature

Returns

A copy of the registered callback list, in registration order. Changing the slice does not change the field definition.

[]LiveValidator[bool]

How it works

Use ReplaceLiveValidators to replace the field’s checks.

Full signature

func (f CheckboxField) LiveValidators() []LiveValidator[bool]

Source field/live_validation.go:122

Related types

  • CheckboxField

    CheckboxField configures a true-or-false checkbox field.

  • LiveValidator

    Check an unsaved field value on the server and return feedback before the author saves.

Related APIs

  • LiveValidationContext

    The request and surrounding values available to a live server validation callback.

Related guides

  • Live server validation