Skip to main content

Checkbox

The Checkbox component can be used in any form to provide a set of checkboxes.

Examples

Checkbox group with multiple selection enabled.

Choose your favorite frameworks

Form Data:
{}

Field Properties

Properties used by this field (inside meta field in schema)

NameDescriptionType
nameThe unique identifier for the checkbox control instance.string
displayNameA string that sets the display name of the checkbox control.string
displayTypeA string indicating the type of control, which is "checkbox" in this case.string
descriptionA string providing additional information or instructions about the checkbox control.string
valueThe initial value of the selected checkboxes.array
optionsAn array of objects representing the checkbox options. Each object should contain:array of objects
labelThe display label for the checkbox (within options).string
valueThe value of the checkbox (within options).any
validationAn object for validation rules.object
requiredA boolean indicating if the checkbox control is required (within validation).boolean
readOnlyA readonly field is not editable and value cannot be changedboolean
configAn object that configures advanced properties.object

Config Object

Key: config

KeyDescriptionType
multipleAllow users to select multiple optionsboolean