Home FORMLY
Guides
UI
Examples
GitHub GitHub
Default Value
There are two ways to initialize the form with default values.
  1. Default the model (preferred)
  2. Use the defaultValue option on the field
Both methods are demonstrated below.

Form Data

[object Object]
Object{lastName:Smith, firstName:This is a default value, candy:milky_way}
lastName:"Smith"
firstName:"This is a default value"
candy:"milky_way"