Field types

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.

0/7
Every answer below lands in the payload under its key.
m²
––
––

Kitchen equipment

Fire extinguisher
Fridges

Payload

{}

A few types side by side. Answer them and watch each land in the 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" }
OptionWhat it does
formata shape the answer must have, below
maxthe most characters
uppercaseturns the answer into capitals as people type
readonlyshows it but it cannot be changed; takes a when
longa text area instead of one line
FormatAccepts
khmerKhmer text, with digits and punctuation
latinLatin letters, with digits and punctuation
khmer-namea name in Khmer, no digits
latin-namea name in Latin letters, no digits
phonea phone number, with a country code picker
emailan 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" }
OptionWhat it does
min, maxthe smallest and largest answer
decimalsallows decimals
unita unit after the number
calculateworks 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" }
OptionWhat it does
valueswhat the API calls them: values: ["Y", "N"]
yes, nothe words on the buttons
defaultanswers 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" }
OptionWhat it does
acceptthe file types allowed, like ["pdf"]
multipletakes several files
appearance"photo" asks for a photo, a third of a row wide
codethe 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.