Adds a single checkbox.
If you need to add a group of checkboxes, use field.checkbox-group.
{% cut "Components used in the example" %}
- data.output: The output data. This is what you get when a Toloker clicks the Submit button.
- condition.required: Checks if an option is selected.
{% endcut %}
#|
|| Name | Type | Description ||
|| type
* | "field.checkbox" | Set component type. ||
|| data
* | writable | {% include toloka-tb-source-data-with-values %} ||
|| label
| string | Label above the component. ||
|| disabled
| boolean | Property that disables the component. If true
, the component will be unavailable. ||
|| hint
| string | Hint text. ||
|| preserveFalse
| boolean | Property that specifies whether to return false
values in the results. By default, if the component returns false
, this result will not be added to the output. To add false
to the results, specify "preserveFalse": true
. ||
|| validation
| condition | Validation based on condition. ||
|#
{% include contact-support %}