# Reference: form generation
Form fields are described by the following structure:
{
name: "field", // Service name of field
title: "My field", // Display name of field
type: "text", // Field type
default: "abc", // Default value (optional)
options: {}, // Add. properties, dependent on type (optional)
tooltip: "Info" // Field hint (optional)
}
# Field types
Type | Name | Сomment |
---|---|---|
text | String input | |
datetime | Date and time picker | |
date | Date picker | |
boolean | Yes/No | |
integer | Integer | In options you can set:min - min. value (default 0),max - max. value |
float | Decimal | In options you can set:min - min. value (default 0),max - max. value,decimalPlaces - number of decimal places (default 3) |