Add and edit fields
Fields are the properties of an object type, and every record of the type has a value for each one. You add and edit them on the Fields tab. You'll need to be an admin or a schema designer.
Add a field
Choose Add field
On the Fields tab, choose Add field in the group where it belongs.
Pick the type
Choose a Type, such as Text, Number or Enum. You can't change a field's type after you create it. See the field types reference.
Choose how many values
Collection controls the count. Scalar holds one value. List holds any number. Quantised List is for references: each entry is a record and a quantity, such as 3 Iron Ore, and Quantity sets how many entries the field can hold. Collection types has the full list.
Name it
Enter a Label. Stoatly creates the Key from it, which your files and code use. The key stays the same if you rename the label later. Slugs covers how keys are made.
Set the constraints
Add any rules the type supports, then save.

Type-specific choices
- Reference fields need a Target object type.
- Enum fields need an Enum, which is a named list of values.
- Formula and Visual fields point to a formula or visual defined on the same object type, and they don't have a collection setting.
Constraints
| Type | Constraints |
|---|---|
| Text | Minimum length, maximum length |
| Number | Minimum value, maximum value, whole numbers only |
| Date | Earliest date, latest date |
| Most types | Required |
Constraints apply to single values. Lists and quantised lists don't take them.
The Name field
Every object type has a built-in Name field. Its label, key and type are fixed, but you can set constraints such as a maximum length.
Groups
Fields are arranged in groups. Use Add group to make a new one, and drag a field into a group or up and down to reorder it.
Deprecate, delete or discard
Use the field's Field actions menu:
- Deprecate marks the field obsolete.
- Delete removes it when your change merges. Stoatly shows what will be affected first.
- Discard draft drops a change you haven't sent.
Inherited fields are edited on the parent type, not here.