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 / How to set the options...
Power Apps
Answered

How to set the options inside a Combobox with a button?

(0) ShareShare
ReportReport
Posted on by 68

Hello,

in my Power App i am trying to set the value of the Combobox with the press of the button.

TheFabonator_0-1688449848708.png

When im pressing the other buttton is should show me the second item in the Combobox.

TheFabonator_1-1688449941819.png

Right now my Combobox im trying to change uses a choice which i connected to my Dataverse. 
The name of the choice is.

 

Status

 

and it has the following items in it.

 

"Recorded"
"Transferred"
"Arrived"

 


Also it should be possible to reset the combobox with another button. So in total 4 Buttons. Is there a possibility to do this or not?

Thx in advance.

Categories:
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @TheFabonator,

    Do you want to change ComboBox selected Item based on special button pressing?

     

    First of all, you could set the Items property of your ComboBox as the Choice options:

     

    Choices('Status (Table1S)')

    Set the OnSelect property of the three status button as:

    Set(varStatus,Self.Text)

    Set the reset button OnSelect property as:

    Set(varStatus,"")

     

    Then set the DefaultSelectedITems property of the ComboBox as below:

     

    Filter(Choices('Status (Table1S)'),Text(Value)=varStatus)

     

    Note that Table1S is my Dataverse table name, you could replace it with yours.

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard