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:
  • Verified answer
    BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 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

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 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard