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 / Hiding Data Cards usin...
Power Apps
Unanswered

Hiding Data Cards using buttons

(0) ShareShare
ReportReport
Posted on by 12

Hi all,

 

I've been trying out so many permutations but none of them work, so would like to ask around for help here.

 

Basically I'm trying to hide data cards when a button is clicked, as below:

 

lzh1991_0-1661743071546.png

 

 

'End' Button

OnSelect: UpdateContext({isVisibleVisit : !isVisibleVisit})

 

'Visit Start' and 'Visit End' Data Cards

Visible: !isVisibleVisit

 

'Create New Visit' Edit Form

OnSuccess: UpdateContext {( isVisibleVisit : false })

 

 

lzh1991_1-1661743071554.png

 

This creates a new entry in the gallery, and the data card disappears when I press the earlier 'End' button. 

 

lzh1991_2-1661743071579.png

 

However, when I go back to edit the entry using the edit button above...

 

lzh1991_3-1661743071594.png

 

 

The data cards reappear.

 

How do I make these data cards disappear persistently ONLY for this particular form entry where the 'End' button is pressed, but still enable it for the other new form entries (where the 'End' button has not been pressed?

 

Many thanks!

Categories:
I have the same question (0)
  • MVP-Phipps Profile Picture
    3,508 Super User 2024 Season 1 on at

    Have an update context on the page load or on the button that navigates you to the new screen...

     

    Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful because this can help others.

    LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
    YouTube: https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg
    Twitter: https://twitter.com/phipps0218

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