web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / when press a button, h...
Power Apps
Unanswered

when press a button, how to set radion group or a combobox's current select item through button's OnSelect script?

(0) ShareShare
ReportReport
Posted on by 76

All content in google search results are "how to get radion group or a combobox's current select item value? "

get value

get value 

get value....

 

not a little:

set value

set value 

set value...

Categories:
  • QuentinDURIEZ Profile Picture
    577 Moderator on at

    Hi,

     

    You will not find a set formula, but we can find a workaround : 


    On the button select property, set the default value :

     

    Button.OnSelect = Set(_varDefaultSelected, [DEFAULT VALUE]) ; Reset(ComboBox)


    Then, use this variable in the default property of the component :

     

    ComboBox.Default = _varDefaultSelected
    //If the component already has a default value
     ComboBox.Default = Coalesce(_varDefaultSelected, [ANOTHER DEFAULT])

     
    So, then you click on the button, you'll store the default value and by resetting the component, it will automatically use the default value that you put in the Default property

    Regards, 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 239

Last 30 days Overall leaderboard