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 button after pres...
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.!

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,371 Most Valuable Professional on at

    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.

  • BiTry Profile Picture
    313 on at

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

  • Verified answer
    WarrenBelz Profile Picture
    156,371 Most Valuable Professional on at

    @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

    ok. THX.

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
WarrenBelz Profile Picture

WarrenBelz 429 Most Valuable Professional

#2
11manish Profile Picture

11manish 191 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 122 Super User 2026 Season 2

Last 30 days Overall leaderboard