Checkbox¶
Checkbox element is an input with checkbox type. It is similar to SwitchCheckbox element. They differ in appearance.
Build-in Validators¶
Element has one build-in validator - checks if value equals 0
or 1
.
Available Validators¶
Element does not have available validators.
Relations Support¶
Element supports relations between elements.
Configuration output schema¶
schema
{
"<element_type>" : "checkbox",
"<element_name>" : string,
"<element_label>" : string,
"<element_labelDescription>" : string,
"<element_isRequired>" : bool,
"<element_isHidden>" : bool,
"<element_defaultValue>" : int
}
example
{
"type": "checkbox",
"name": "shouldShowAuthor",
"label": "Author of the entry",
"defaultValue": 0
}
Element value¶
If value is filled it can be 0
or 1
.