Skip to main content
Menu
On this page

Checkbox

Collect one boolean answer as a checkbox or switch.

Rendered by the SDK
@usefillo/react
Interactive local preview. Nothing is submitted.

The checkbox field stores one boolean answer.

Options and validation

OptionTypeDefaultBehavior
appearancecheckbox or togglecheckboxChanges the built-in control style
requiredbooleanfalseRequires the value to be true

A required checkbox works for an acknowledgement the respondent has to accept. Don't mark an optional preference required, though — false is treated as an empty required answer, so leaving it unchecked fails validation.

Add a checkbox field

In the dashboard, select Add block, choose Checkbox, and choose checkbox or toggle appearance.

ts
const consentField = {
  id: "contact_consent",
  kind: "checkbox",
  label: "You may contact me about this request",
  required: true,
} as const;

Updated

Was this page helpful?