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 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:
I have the same question (0)
  • QuentinDURIEZ Profile Picture
    547 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard