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


open allclose all

Basic Examples  (2)

The default states for Checkbox:

Using different values for states:

Scope  (3)

By using Dynamic variables within Checkbox, the state variable is dynamically updated:

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

Multiple checkboxes can share the same state variable:

Options  (8)

Appearance  (2)

Control the appearance of the checkbox:

Dynamically changing appearance:

AutoAction  (2)

By default, the checkbox does not change state until it is clicked:

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

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

BaselinePosition  (1)

Align with surrounding text:

Enabled  (2)

The Enabled option allows the checkbox to be changed:

The Enabled option can be changed dynamically for use in applications:

ImageMargins  (1)

Change the margins around the image:

Applications  (4)

Use Checkbox to set variables corresponding to a three-way light switch:

Control options through checkboxes:

Use checkboxes to build a dynamic truth table:

Count the number of clicks in a Checkbox:

Properties & Relations  (1)

Checkbox is a special case of Toggler:

Wolfram Research (2007), Checkbox, Wolfram Language function,


Wolfram Research (2007), Checkbox, Wolfram Language function,


Wolfram Language. 2007. "Checkbox." Wolfram Language & System Documentation Center. Wolfram Research.


Wolfram Language. (2007). Checkbox. Wolfram Language & System Documentation Center. Retrieved from


@misc{reference.wolfram_2024_checkbox, author="Wolfram Research", title="{Checkbox}", year="2007", howpublished="\url{}", note=[Accessed: 24-July-2024 ]}


@online{reference.wolfram_2024_checkbox, organization={Wolfram Research}, title={Checkbox}, year={2007}, url={}, note=[Accessed: 24-July-2024 ]}