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
MTextListField.DefaultCallback

Go packages

riducorefieldoperationqueryschemastorestoragemigrationmigration/payloadprotocol (Go)plugintestconformance

Official adapters

postgressqlitemongodbstorage/localstorage/s3

Official plugins

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

TypeScript packages

@riducms/sdk@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/protocol@riducms/plugin@riducms/build@riducms/ui@riducms/plugin-richtext@riducms/plugin-seo@riducms/plugin-form-builder@riducms/admin@riducms/translations@riducms/cli/runridu CLI
All 1023TextareaField.AccessTextListField.AppendHooksTextListField.AppendReadHooksTextListField.DefaultTextListField.DefaultCallbackTextListField.DefaultFromTextListField.EditAdminTextListField.HookPolicy

method

TextListField.DefaultCallback

Read the configured dynamic default.

ExampleReturnsHow it worksFull signature

Example

go
field.TextList("tags").DefaultCallback()

Returns

The configured default callback, or nil; it is not executed.

DefaultFunc[[]string]

How it works

Returns nil when no dynamic default is configured. Reading the callback does not execute it.

Full signature

func (f TextListField) DefaultCallback() DefaultFunc[[]string]

Source field/primitive_list.go:132

Related types

  • TextListField

    A configurable list of strings.

  • DefaultFunc

    Choose a field’s initial value on the server using the request, user, locale, or nearby values.

Related guides

  • Text and number lists