Checkbox
represents a checkbox with setting x, displayed as when x is True and
when x is False.
takes the setting to be the dynamically updated current value of x, with the value of x being toggled if the checkbox is clicked.
represents a checkbox that toggles between values val1 and val2 and displays as and
, respectively.
represents a checkbox that cycles through values vali and displays as for all vali with i>2.
Details and Options

- Checkbox is effectively a special case of Toggler.
- The following options can be given:
-
Appearance Automatic the overall appearance of the checkbox AutoAction False whether to change the checkbox automatically when the mouse is over it BaselinePosition Automatic alignment relative to surrounding text BaseStyle {} base style specifications for the checkbox Enabled Automatic whether the checkbox is enabled or grayed out ImageMargins 0 margins around the image of the displayed checkbox - Typical possible settings for Appearance include Small, Medium, and Large.
- Checkbox[] is equivalent to Checkbox[False].
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
The default states for Checkbox:

https://wolfram.com/xid/0rsv5k90b-d6ub94

Using different values for states:

https://wolfram.com/xid/0rsv5k90b-b2dk38

Scope (3)Survey of the scope of standard use cases
By using Dynamic variables within Checkbox, the state variable is dynamically updated:

https://wolfram.com/xid/0rsv5k90b-g5cura

Here the value of x cycles through the list {1,2,3,4}:

https://wolfram.com/xid/0rsv5k90b-b7jn5a

Multiple checkboxes can share the same state variable:

https://wolfram.com/xid/0rsv5k90b-d4ws1u

Options (8)Common values & functionality for each option
Appearance (2)
AutoAction (2)
By default, the checkbox does not change state until it is clicked:

https://wolfram.com/xid/0rsv5k90b-rslvpt

By setting AutoAction, the checkbox changes state when the mouse moves over it:

https://wolfram.com/xid/0rsv5k90b-uxl7g8

Values will change as the cursor is moved over the clickable area:

https://wolfram.com/xid/0rsv5k90b-dlhtkc

BaselinePosition (1)
Enabled (2)
Applications (4)Sample problems that can be solved with this function
Use Checkbox to set variables corresponding to a three-way light switch:

https://wolfram.com/xid/0rsv5k90b-bf9enn

Control options through checkboxes:

https://wolfram.com/xid/0rsv5k90b-crfwkm


https://wolfram.com/xid/0rsv5k90b-cjymaj

Use checkboxes to build a dynamic truth table:

https://wolfram.com/xid/0rsv5k90b-df4vo4

https://wolfram.com/xid/0rsv5k90b-olbm7

Count the number of clicks in a Checkbox:

https://wolfram.com/xid/0rsv5k90b-r6i69

Wolfram Research (2007), Checkbox, Wolfram Language function, https://reference.wolfram.com/language/ref/Checkbox.html.
Text
Wolfram Research (2007), Checkbox, Wolfram Language function, https://reference.wolfram.com/language/ref/Checkbox.html.
Wolfram Research (2007), Checkbox, Wolfram Language function, https://reference.wolfram.com/language/ref/Checkbox.html.
CMS
Wolfram Language. 2007. "Checkbox." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Checkbox.html.
Wolfram Language. 2007. "Checkbox." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Checkbox.html.
APA
Wolfram Language. (2007). Checkbox. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Checkbox.html
Wolfram Language. (2007). Checkbox. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Checkbox.html
BibTeX
@misc{reference.wolfram_2025_checkbox, author="Wolfram Research", title="{Checkbox}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/Checkbox.html}", note=[Accessed: 04-June-2025
]}
BibLaTeX
@online{reference.wolfram_2025_checkbox, organization={Wolfram Research}, title={Checkbox}, year={2007}, url={https://reference.wolfram.com/language/ref/Checkbox.html}, note=[Accessed: 04-June-2025
]}