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 / Button to Clear Defaul...
Power Apps
Answered

Button to Clear DefaultSelectedItems

(0) ShareShare
ReportReport
Posted on by 85

Is there a button that "On Select" could clear out the DefaultSlectedItems? I have a gallery and by default I only want to show the following status' ["New Entry","Vendor Security Review","Security Reviewed/Awaiting Assessment","Upcoming Reviews for Assessment","Assessing","On hold","Pending Timeline","Awaiting Documentation","RFP/Demo","Viability Review","IT Executive Council","MEDITECH Pathway"] but if a user wants to see EVERYTHING, I would like to give them the option to select a button to clear these from the status. 

mkAveraHealth_0-1673902077301.png

 

Categories:
I have the same question (0)
  • Verified answer
    BCBuizer Profile Picture
    22,577 Super User 2026 Season 1 on at

    Hi @mkAveraHealth ,

     

    I suggest to use a variable for this property instead of hard coding it. Let's say inthe Screen.OnVisible property you set it to:

    UpdateContext({varFilter:["New Entry","Vendor Security Review","Security Reviewed/Awaiting Assessment","Upcoming Reviews for Assessment","Assessing","On hold","Pending Timeline","Awaiting Documentation","RFP/Demo","Viability Review","IT Executive Council","MEDITECH Pathway"]})

     

    Then set the DefaultSelectItems propert of the combo box to:

    varFilter

     

    In the OnSelect property of your button you can then use a similar code as for the Screen.Onvisible property, but add the missing items.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard