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

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2