Here’s a clear definition + description for the Checkbox Widget:
checkbox)The Checkbox Widget is a boolean input field that allows users to toggle between two states — checked (true) or unchecked (false).
This widget is commonly used to capture user agreements, confirmations, or selections in forms. It can be configured with default values, validation patterns (e.g., requiring acceptance of terms), conditional display rules, and enable/disable states. It also supports descriptive text to guide users.
Typical use cases include:
Complete JSON Object
{
"key": "InputKey",
"type": "checkbox",
"props": {
"label": "Input Name",
"description": "In order to proceed, please accept terms",
"pattern": "true",
"indeterminate":false,
"pattern":"true",
"default":false
},
"validation": {
"messages": {
"pattern": "Please accept the terms"
}
}
}
Allowed Custom Properties
Allowed Validations