A2v10 Platform documentation
UK


Templates. Initial Values

The defaults section allows you to set initial values for the new model. A model with a zero (empty) identifier of the main object is considered new.

The object describing the initial values is a regular JavaScript object. Property names represent the path to the data item in the model (to the property the value of which needs to be set).

Syntax


Example

Example of a document template with automatic setting of today's date.