Basics/Field types

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:

TypeAsks for
texta short answer; long: true makes it a few lines
numbera number; min, max and unit refine it
datea day
yes-noa question that needs an answer
addressa 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.

Up nextRequired unless optional