Field types
Every built-in type, what it asks, and the options it takes.
Every field takes key, type and label, and these shared options: optional, hint, placeholder, width, newRow, when, checks, path and at. The options below are each type's own.
Payload
{}
text
A short answer. long: true makes it a text area for a few lines.
{ key: "name", type: "text", format: "latin", max: 80, label: "Café name" }
| Option | What it does |
|---|---|
format | a shape the answer must have, below |
max | the most characters |
uppercase | turns the answer into capitals as people type |
readonly | shows it but it cannot be changed; takes a when |
long | a text area instead of one line |
| Format | Accepts |
|---|---|
khmer | Khmer text, with digits and punctuation |
latin | Latin letters, with digits and punctuation |
khmer-name | a name in Khmer, no digits |
latin-name | a name in Latin letters, no digits |
phone | a phone number, with a country code picker |
email | an email address |
number
Whole numbers unless decimals is set. unit shows after the number, here and in the review.
{ key: "area", type: "number", min: 1, decimals: 2, unit: "m²", label: "Floor area" }
| Option | What it does |
|---|---|
min, max | the smallest and largest answer |
decimals | allows decimals |
unit | a unit after the number |
calculate | works it out from other numbers; see Calculated numbers |
date and time
A date is sent as 2026-11-04, a time as 14:30. Compare dates with checks, including "today".
{ key: "opening", type: "date", label: "Opening day", checks: [{ atLeast: "today" }] }
{ key: "opens", type: "time", label: "Opens at" }
radio, select and checkboxes
One option, one from a dropdown, or several. All take options.
{ key: "kind", type: "radio", label: "Kind", options: [{ code: "COFFEE", label: "Coffee" }, { code: "TEA", label: "Tea" }] }
See Options for written lists, lists from your API, and picking several.
yes-no
A question answered Yes or No. The answer is true or false, in conditions and in the payload.
{ key: "smoking", type: "yes-no", yes: "Allowed", no: "Not allowed", label: "Smoking" }
| Option | What it does |
|---|---|
values | what the API calls them: values: ["Y", "N"] |
yes, no | the words on the buttons |
default | answers it before the person does |
checkbox
One tick box, true or false, with its label beside it. description adds a line below, and default: true ticks it at first.
{ key: "same_address", type: "checkbox", optional: true, label: "The owner lives at the café" }
Use it for an option people may tick. For a question that needs an answer, use yes-no.
checklist
Items to confirm one by one, each there or not. An item with detail asks for a text or a number when it is there, with an optional unit.
{
key: "equipment",
type: "checklist",
label: "Kitchen equipment",
items: [
{ key: "extinguisher", label: "Fire extinguisher" },
{ key: "fridges", label: "Fridges", detail: "number" },
],
}
// equipment: { has_extinguisher: true, has_fridges: true, fridges: 3 }
file
An attachment. PDF, JPG and PNG unless accept says otherwise.
{ key: "floor_plan", type: "file", accept: ["pdf"], label: "Floor plan" }
| Option | What it does |
|---|---|
accept | the file types allowed, like ["pdf"] |
multiple | takes several files |
appearance | "photo" asks for a photo, a third of a row wide |
code | the name the API gives the file, when it differs from the key |
list
Rows people add, each with its own fields. See Lists.
notice
Text to read, with no answer. tone is info, warning or error; description adds a paragraph and link a link.
{ key: "note", type: "notice", tone: "warning", label: "Bring the original documents to the inspection." }
From a preset, or your own
A preset can add types: the service-form preset adds address, scan, consent and account. To write one, see Your own field type.