Radio Group (AI Assistant)
This page provides information on using the Radio Group widget (available in AI Assistant Apps), which allows users to select a single option from a predefined set of choices.

Content properties
These properties are customizable options present in the property pane of the widget, allowing users to modify the widget according to their preferences.
Data
Defines the options and values for the widget, determining the content displayed to users.
Options array<object>
This property allows you to define the options displayed in the widget by specifying the labels and corresponding values. The values must follow a label-value
format, where each label is paired with a unique value. You can either add these options directly via the user interface or use JS to provide them in JSON format.
Example:
[
{
"label": "Yes",
"value": "yes"
},
{
"label": "No",
"value": "no"
}
]
You can also dynamically display data by using JavaScript. For instance, you can use the .map()
function to transform the data to the desired format, like:
Example:
{{getdata.data.map( p => ({label: p.country, value: p.country}))}}
Default selected value string
This property defines the default option selected in the Radio Group widget. It is mandatory to set a value, and it must match one of the values specified in the Options property.