RadioButton[x,val]
represents a radio button whose setting x is set to val when the button is clicked.
RadioButton[x,val]
is displayed as
when x is val, and as
otherwise.
RadioButton[Dynamic[x],val]
takes the setting to be the dynamically updated current value of x, with the value of x being reset if the button is clicked.
RadioButton
RadioButton[x,val]
represents a radio button whose setting x is set to val when the button is clicked.
RadioButton[x,val]
is displayed as
when x is val, and as
otherwise.
RadioButton[Dynamic[x],val]
takes the setting to be the dynamically updated current value of x, with the value of x being reset if the button is clicked.
Details and Options
- RadioButton is effectively a special case of Setter. »
- Radio buttons representing several mutually exclusive choices can be created by having several RadioButton[Dynamic[x],vali] with the same x but different vali. »
- RadioButton[] is equivalent to RadioButton[False,True].
Examples
open all close allBasic Examples (1)
Scope (1)
Labeled RadioButton instances:
{Labeled[RadioButton[Dynamic[x], 0], 0, Right], Labeled[RadioButton[Dynamic[x], 1], 1, Right], Dynamic[x]}Options (9)
Appearance (2)
AutoAction (1)
Background (2)
BaselinePosition (1)
Enabled (2)
By default RadioButton is enabled:
RadioButton[x, 0]By setting Enabled->False, the radio button is disabled, but visible in its current state:
RadioButton[x, 1, Enabled -> False]ImageMargins (1)
Increase the clickable area of RadioButton:
Table[Framed@RadioButton[ImageMargins -> m], {m, {0, 5, 10, 20}}]Properties & Relations (2)
RadioButtonBar uses RadioButton with the same variable:
{RadioButtonBar[Dynamic[x], {1, 2, 3}], Dynamic[x]}{Table[RadioButton[Dynamic[y], s], {s, {1, 2, 3}}], Dynamic[y]}RadioButton is a special case of Setter:
{Table[Setter[Dynamic[x], s], {s, {a, b, c}}], Dynamic[x]}{Table[RadioButton[Dynamic[y], s], {s, {a, b, c}}], Dynamic[y]}Tech Notes
Related Guides
Related Workflows
- Build a Manipulate
History
Text
Wolfram Research (2007), RadioButton, Wolfram Language function, https://reference.wolfram.com/language/ref/RadioButton.html.
CMS
Wolfram Language. 2007. "RadioButton." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RadioButton.html.
APA
Wolfram Language. (2007). RadioButton. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RadioButton.html
BibTeX
@misc{reference.wolfram_2026_radiobutton, author="Wolfram Research", title="{RadioButton}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/RadioButton.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_radiobutton, organization={Wolfram Research}, title={RadioButton}, year={2007}, url={https://reference.wolfram.com/language/ref/RadioButton.html}, note=[Accessed: 12-June-2026]}