Reference
Field types
Every field has a type, and the type decides what the field can hold and how it's edited. Most types store a value on the record. Formula fields are calculated by Stoatly, and Visual fields only draw a chart. You choose a field's type when you create it, and you can't change it afterwards.
Stored types
| Type | Stores |
|---|---|
| Text | A string |
| Number | A numeric value, optionally whole numbers only |
| Boolean | True or false |
| Date | A calendar date |
| Enum | One value from a named list |
| Reference | A link to a record of another object type |
| Colour | A colour value |
Calculated types
| Type | What it does |
|---|---|
| Formula | Shows a value that Stoatly calculates from other fields, and writes into the record's file |
| Visual | Draws a chart from record values, and stores nothing |
Collections
Any stored type can hold one value or a list. Formula and Visual fields can't. See Collection types.
| Collection | Holds |
|---|---|
| Scalar | One value |
| List | Any number of values |
| Quantised List | Records of another object type, each with a quantity, up to the limit you set |
Constraints
| Type | Rules you can set |
|---|---|
| Text | Minimum length, maximum length |
| Number | Minimum value, maximum value, whole numbers only |
| Date | Earliest date, latest date |
| Most types | Required |
Rules apply to fields that hold one value. See Add and edit fields.