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

Community site session details

Session Id :
Power Apps - Building 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:
I have the same question (0)
  • QuentinDURIEZ Profile Picture
    541 Moderator on at
    Re: when press a button, how to set radion group or a combobox's current select item through button's OnSelect script?

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 655 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 391 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 225

Last 30 days Overall leaderboard