web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Hide button after pres...
Power Apps
Unanswered

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
    153,026 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
    153,026 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard