Skip to main content
Menu
On this page

Hidden

Store source or account context without rendering a question.

Rendered by the SDK
@usefillo/react

The SDK renders no visible control for a hidden field.

Interactive local preview. Nothing is submitted.

The hidden field stores a string from a URL parameter or configured default without rendering a control.

Options

OptionTypeDefaultBehavior
paramNamestringthe field IDSelects the query-string key
defaultValuestringnoneSupplies a value when the parameter is absent

Hidden-field parameter names are case-sensitive. A URL value wins over defaultValue, while explicit SDK initialData and a respondent's typed state win over URL prefill.

Add a hidden field

In the dashboard, select Add block, choose Hidden, and set the parameter name and optional default.

ts
const sourceField = {
  id: "campaign_source",
  kind: "hidden",
  label: "Campaign source",
  paramName: "utm_source",
  defaultValue: "direct",
} as const;

Opening /f/contact?utm_source=newsletter stores newsletter under the stable response key campaign_source.

Updated

Was this page helpful?