Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Hide button after pressing

(0) ShareShare
ReportReport
Posted on by 313

Hi,

 

I found the following solution on this page, my problem with it is that after exiting the values are lost and the buttons appear again. Can I store the values of the collection?

 

Button onselect: If(ThisItem.'Azonosító (ID)' in ColVar;Clear(ColVar);Set(Var;ThisItem.'Azonosító (ID)'); Collect(ColVar;Var))

Button visible: If(ThisItem.'Azonosító (ID)' in ColVar;false;true)

 

Thx.!

  • BiTry Profile Picture
    313 on at
    Re: Hide button after pressing

    ok. THX.

  • Verified answer
    WarrenBelz Profile Picture
    148,811 Most Valuable Professional on at
    Re: Hide button after pressing

    @BiTry ,

    Not if you exit the app - you would have to write it to a List and then get it back at App OnStart

  • BiTry Profile Picture
    313 on at
    Re: Hide button after pressing

    That is, it is not possible to save the values of the collection:(

  • WarrenBelz Profile Picture
    148,811 Most Valuable Professional on at
    Re: Hide button after pressing

    Hi @BiTry ,

    I am not totally clear on your logic here (you are testing if a value is in a collection and if it is you are clearing the collection and then putting the value back), however what do you mean by "exiting". If you are referring to exiting the app and then re-entering it, then neither a Variable or a Collection will help you here as both only exist while the app is running.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1