FormField
A field of a form.
idrequiredstring (uuid)- The field id.
labelrequiredstring | null- The question shown to the person filling in the form.
namerequiredstring | null- The field's short name.
descriptionrequiredstring | null- Help text shown under the question.
typerequiredstring | null- The field type, such as TEXT or DROPDOWN.
referencerequiredstring | null- A key that stays stable across edits, unique within the form.
validatorrequiredstring | null- Validation rules, separated by a pipe, such as required|string.
placeholderrequiredstring | null- Placeholder text.
pre_population_keyrequiredstring | null- The profile value that pre-fills this field.
backfillrequiredboolean- Whether the answer is written back to the profile.
orderrequiredinteger | null- The field's position within the form.
page_idrequiredstring | null (uuid)- The page the field sits on.
option_preset_idrequiredstring | null (uuid)- The option preset a dropdown field takes its options from.
optionsrequiredarray | object | null- The options of a dropdown or similar field.
requiredrequiredboolean- Whether an answer is required. Read-only: it follows the validator.
conditionsrequiredobject[]- Conditions that show this field only when another field has a given answer.
condition_logicrequiredstring- Whether all conditions (AND) or any one (OR) must hold.One of: AND, OR