Basics
Field types
type is more than the input on screen. A number refuses letters, a date opens a calendar and is sent as 2026-03-01, and each reads back properly in the review.
The types you will use most:
| Type | Asks for |
|---|---|
text | a short answer; long: true makes it a few lines |
number | a number; min, max and unit refine it |
date | a day |
yes-no | a question that needs an answer |
address | a place in Cambodia, province down to village |
Add how many seats the café has, and the day it opens:
{
key: "seats",
type: "number",
min: 1,
label: "Seats",
},
{
key: "opening_date",
type: "date",
label: "Opening date",
},
Each field takes the width that suits its type. A text takes half a row, a date a third. You only set width to change that.