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 / Hide and discabble but...
Power Apps
Answered

Hide and discabble button once clicked

(0) ShareShare
ReportReport
Posted on by 38

Hi,

 

due to a large database and removing duplicates I am having to add a button to load without duplicates once rather then on every search.  Firstly is there a way of doing this automatically and not using a button?

 

If not can someone help me adapt my formula to remove the button and disable it after clicked so I can have it as a large button overlaid on my gallery/search fields then when clicked its removed and doesn't effect the rest of the search fields? Here is what I have at the moment:

 

ClearCollect(colTest,
ForAll(
Distinct(
'store library 2022-V3',
'Store Name'
),
LookUp(
'store library 2022-V3',
'Store Name' = Result
)
))

Categories:
  • Verified answer
    BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @Quilley ,

     

    Finding another trigger besider clicking a button completely depends on how your app has been set up, so a specific answer can't really be given. What you may want to consider is copying this text to the OnStart property of your app (in case the collection is only used for viewing throughout the use of the app) or to copy it to the OnVisible property of the screen(s) where the collection is used. Like that, navigating to the screen will cause the collection to be rebuilt automatically.

  • Quilley Profile Picture
    38 on at

    Thanks so much, applying the code to the app 'OnStart' property worked perfectly 🙂

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