Types

UserDataCaptureFormCreate

Create a UDC form. `fields`/`pages` follow the same shape as the form-builder editor (a field's `reference` is its UDC key).

namerequired
string
fields
object[]
Form-builder field definitions to seed. Each field carries a `type`, `label`, `reference`, optional `validator` (include `required` to make it mandatory), `placeholder`, `order`, `options`, etc. A field may also include a `conditions` array to show it only when another field's answer matches — each condition is `{ reference: <the controlling field's reference>, operator (=, !=, >, <, >=, <=, or ?? = has-value), value }`; omit `value` only when operator is `??`. Conditions are display-only. A field may also include `conditionLogic` (`AND` or `OR`, default `AND`) saying how its conditions combine. The `one_of` and `not_one_of` operators take a non-empty list of values instead of a single one. On a single-answer controlling field they match when the answer is (or is not) one of the listed values; on a multi-select controlling field they match when the answer includes at least one of them (or none of them).
pages
object[]
Form-builder page definitions.

Used by (1)