Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Dropdown populates radio button group

ParreLaws
Level 4
Level 4

I have some radio button that I would like the correct one to be checked when a selection in the dropdown is selected.

example

     If you select Red from the dropdown menu then the first radiobutton would be selected from the radiobutton group.

Thank you.

1 Reply
Magus069
Level 10
Level 10

Hi there,

The syntax to set a selection on a radio button would look like this:

radioButtonList.optRed.setItemState(0, true);

so varying on the dropdown list choice

Hope this helps.