Skip to main content

Radio Button

The Radio button component can be used to collect user input from a list of options.

Properties​

Property
Description
LabelThe text is to be used as the label for the radio button. This field expects a String value.
Default valueThe value of the default option.
Option valuesList of values for different items/options. Refer your query data with dynamic variables {{queries.datasource.data.map(item => item.value)}} or populate it with sample values {{[true, false]}}.
Option labelsList of labels for different items/options. Refer your query data with dynamic variables {{queries.datasource.data.map(item => item.label)}} or populate it with sample values {{["yes", "no"]}}.

Component specific actions (CSA)​

Following actions of the component can be controlled using the component specific actions(CSA):

Actions
Description
How To Access
selectOption()Selects an option.Employ a RunJS query (for e.g.,
await components.radiobutton1.selectOption(2)) or trigger it using an event.

Exposed Variables​

Variable
Description
How To Access
valueHolds the value selected by the user in the component.Accessible dynamically with JS (for e.g., {{components.radiobutton1.value}}).

Events​

Event
Description
On selectThe On select event is triggered when a particular option is chosen.
info

For comprehensive information on all available Actions, refer to the Action Reference documentation.

General​

Tooltip​

A Tooltip is often used to specify extra information about something when the user hovers the mouse pointer over the component.

Under the General accordion, you can set the value in the string format. Now hovering over the component will display the string as the tooltip.

Devices​

Property
Description
Expected Value
Show on desktopMakes the component visible in desktop view.You can set it with the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
Show on mobileMakes the component visible in mobile view.You can set it with the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.

Styles​

Style
Description
Default Value
Text colorChange the color of the text in the component by providing the Hex color code or by choosing the color of your choice from the color picker.
Active colorChange the color of active radio button by providing the Hex color code or by choosing the color of your choice from the color picker.
VisibilityToggle on or off to control the visibility of the component. You can programmatically change its value by clicking on the fx button next to it. If {{false}} the component will not be visible after the app is deployed.By default, it's set to {{true}}
DisableThis is off by default, toggle on the switch to lock the component and make it non-functional. You can also programmatically set the value by clicking on the fx button next to it. If set to {{true}}, the component will be locked and becomes non-functional.By default, its value is set to {{false}}