method
NumberListField.DefaultCallback
Read the configured dynamic default.
Example
field.NumberList("availableSizes").DefaultCallback()Returns
The configured default callback, or nil; it is not executed.
DefaultFunc[[]float64]How it works
Returns nil when no dynamic default is configured. Reading the callback does not execute it.
Full signature
func (f NumberListField) DefaultCallback() DefaultFunc[[]float64]Related types
NumberListFieldA configurable list of numbers.
DefaultFuncDefaultFunc 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.