Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1.44 KB

field.checkbox.md

File metadata and controls

29 lines (20 loc) · 1.44 KB

field.checkbox

Adds a single checkbox.

If you need to add a group of checkboxes, use field.checkbox-group.

View example in the sandbox

{% 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 %}

Component properties {#properties}

#| || 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 %}