Fields are properties a the document instance that are defined in its DocType.
Small, single line text (140 chars)
Long multi-line text
Integer
Number
Number with currency
Code string (like Text but monospaced)
Date (formatted by SystemSettings.dateFormat)
Dropdown with fixed options. Options must be set in the options
property
{
fieldtype: "Select",
fieldname: "status",
label: "Status",
options: [
"Open",
"Closed",
"Pending"
]
}
Reference to another document set by target
{
fieldtype: "Link",
fieldname: "customer",
label: "Customer",
target: "Customer"
}
Property with child documents, the type of children is defined by childtype
property
{
fieldtype: "Table",
fieldname: "items",
label: "Items",
target: "InvoiceItem"
}