You can use the Button Group UI Pattern to display radio button choices to the user. This pattern is ideal when you have between two to four options. To show a larger number of options, consider using a the Dropdown UI Pattern.
How to use the Button Group UI Pattern
In Service Studio, in the Toolbox, search for
The Button Group widget is displayed.
If the UI widget does not display, it may be because you used a ready-made app, which deletes unused widgets from the module. To make additional widgets available in your app:
a. Go to Module > Manage dependencies.
b. Search for and select the relevant Producer, for example OutSystemsUI. Ensure Show All is selected.
c. On the Public elements for the selected Producer displayed on the right, ensure Show All is selected.
d. Search for and select the element you want to add, and click Apply.
e. In Service Studio, in the Toolbox, search for the widget again.
From the Toolbox, drag the Button Group widget into the Main Content area of your application's screen.
By default, the pattern contains 3 Button Group Items. You can add or delete as many Button Group Items as required.
From the Widget Tree, select the radio-button element, and on the Properties tab, set the Variable and Value properties.
Repeat step 3 for each of the radio-button elements.
Change the Label text for each of the Button Group Items.
|IsJustified (Boolean): Optional||If True, the Button Group items are evenly distributed in the space available. If False, the Button Group items are left aligned. This is the default.|