Radio button issue in App Designer
Show older comments
I am working in App designer and I have included a radio button group in my GUI. In that one button is automatically selected while opening it. I want nothing to be selected at the start. How can i do that?
Thanks in advance
Accepted Answer
More Answers (1)
Image Analyst
on 5 Aug 2025
Edited: Image Analyst
on 6 Aug 2025
@dpb says he also tried it and you can't. So I suggest, if you really want to do that, you use a different control such as a set of checkboxes or a multi-selection listbox.
I've also used a drop down list where the first item is "Select whatever" and then the list of option names follows below that. Then you can check the .Value property of the list and act upon whatever is there.
selectedItemName = app.dropdown1.Value;
if contains(selectedItemName, 'Select')
msgbox('Select a different choice!');
elseif contains(selectedItemName, 'Choice 1')
msgbox('You chose choice1');
elseif contains(selectedItemName, 'Choice 2')
msgbox('You chose choice 2');
end
Categories
Find more on Graphics Object Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!