Skip to reading
Images, Carousels & Choice Controls

20. Build a group of Radio Buttons

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

Use radio buttons for one-of-several choices. Difficulty can be Relaxed, Standard or Challenging; choosing one should clear the other two.

1. Add three Radio Buttons with IDs radio_relaxed, radio_standard and radio_challenging.

2. Set their captions in Text & Content.

3. In Type Settings, enter prefs_difficulty as Radio Group on all three.

4. Turn Checked on only for Relaxed. Leave the other two off.

5. Run Preview and choose Standard, then Challenging. Confirm that only one remains selected.

Figure 31. The Relaxed option starts checked. Its Radio Group string links it to the other difficulty options.

Radio Group is a logical relationship between choice controls. It is different from General → Group ID, which is used for GUI grouping and targeting. Giving two controls the same editing Group ID does not make them mutually exclusive.

Set exactly one deliberate starting choice when the screen needs a default. Several checked entries in one group leave the result dependent on construction order.

Page 37 of 52Permalink
Go to page