method

TextListField.DefaultCallback

Read the configured dynamic default.

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

Related types

  • TextListField

    A configurable list of strings.

  • DefaultFunc

    DefaultFunc supplies a server-side initial value for an eligible omitted field. Root and Siblings are snapshots at initialization; Prior is the persisted enclosing object or stable row (empty for new rows). ID may be empty. Locale is exact and Local retains authorization, cancellation and the active transaction. Present supplies a value, including zero values; Empty leaves it without a default. An error stops the operation. Returned values still pass validation. Defaults do not prefill an unsaved admin form and do not run on ordinary edits to an existing scope. Callbacks must not depend on other dynamic defaults or perform irreversible side effects: separate requests or retries can run again.

Related guides