Checkbox

Displays a form checkbox.

API Reference

Checkbox

NameTypeDefault
name:stringnil
value:string"1"
Value sent to the server when the checkbox is checked.
unchecked_value:string"0"
Value sent to the server when the checkbox is unchecked. Only used when include_hidden is true.
checked:booleanfalse
Initial checked state of the checkbox. When true, the checkbox will appear selected on page load.
include_hidden:booleantrue
Whether to include a hidden field that ensures a value is sent even when the checkbox is unchecked.
attributeskeyword arguments

Keyboard Interactions

KeyDescription
SpaceChecks/unchecks the checkbox.

Examples