Skip to content

getFieldInitialValue ​

Overview ​

Returns the initial value for a field based on its type and model, or undefined for many-relations.

Signature ​

getFieldInitialValue(fieldDetail)

Parameters ​

NameTypeRequiredDescription
fieldDetailanyyesThe field detail object.

Returns ​

unknown

The initial value for the field, or undefined.

Source ​

client/lib/use/useModelInitialValues.js:114