Fields
Built-in field kinds:
| Kind | Value | Options |
|---|---|---|
text | string | placeholder, minLength, maxLength, pattern |
number | number | null | min, max, step, unit, placeholder |
boolean | boolean | required requires true |
category | string | null | options as strings or { label, value } |
mapped-category | string | null | options as { label, value, mapping }. See Mapped Category. |
onehot-category | string | null | options as { label, value, mappedTo }. Emits 0/1 one-hot columns. See OneHot Category. |
date | Date | null | min, max, step |
series | points array | minPoints, maxPoints, granularity, ordered, uniqueTimestamps, minDate, maxDate, minValue, maxValue, unit |
Shared options:
{ id: "email", kind: "text", label: "Email", description: "Used for notifications.", showDescriptionInline: true, required: true, defaultValue: "", includeInSubmission: true, mappedTo: "email", hiddenWhen: { kind: "field-value", field: "anonymous", equals: true }, ui: { autocomplete: "email" }}Shared field options also include:
showDescriptionInline: Showsdescriptionby default instead of waiting for the help button.inactiveFieldPolicy: Controls whether hidden/disabled fields are submitted.includeInSubmission: Set tofalseto keep a field out ofvalues,fieldValues,serializedValues, andserializedFieldValues.mappedTo: Writes the field to a backend feature name, numeric position, or backend-specific map.valuePath: Writes the field into a nested payload path while keeping flatfieldValues.