Skip to content

Fields

Built-in field kinds:

KindValueOptions
textstringplaceholder, minLength, maxLength, pattern
numbernumber | nullmin, max, step, unit, placeholder
booleanbooleanrequired requires true
categorystring | nulloptions as strings or { label, value }
mapped-categorystring | nulloptions as { label, value, mapping }. See Mapped Category.
dateDate | nullmin, max, step
seriespoints arrayminPoints, maxPoints, granularity, ordered, uniqueTimestamps, minDate, maxDate, minValue, maxValue, unit

Shared options:

{
id: "email",
kind: "text",
label: "Email",
description: "Used for notifications.",
required: true,
defaultValue: "",
includeInSubmission: true,
hiddenWhen: { kind: "field-value", field: "anonymous", equals: true },
ui: { autocomplete: "email" }
}

Shared field options also include:

  • inactiveFieldPolicy: Controls whether hidden/disabled fields are submitted.
  • includeInSubmission: Set to false to keep a field out of values, fieldValues, serializedValues, and serializedFieldValues.
  • valuePath: Writes the field into a nested payload path while keeping flat fieldValues.