checkbox
- Description: Boolean toggle for enabling/disabling options
- Base Type: control
- Data Type: Boolean
- Validation Rules:
- Only accepts true/false values
- Default state may be checked or unchecked
- Example Values:
true,false - Common Use Cases: Feature toggles, Option flags, Yes/No settings
- Optional Properties:
value(String): Default value -"true"for checked,""or"false"for uncheckedchecked(Boolean): Iftrue, the checkbox is checked by defaultinline(Boolean): Iftrue, displays the checkbox inline. Default isfalse.- required (Boolean): If
true, the field must be filled. Default isfalse.
JSON Example:
{
"key": "enableFeature",
"label": "Enable Feature",
"baseType": "control",
"controlType": "checkbox",
"checked": true
}