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 / edit. how to hid and s...
Power Apps
Unanswered

edit. how to hid and show datacard link?

(0) ShareShare
ReportReport
Posted on by 1,994

Hi  

 

I have an edit icon, that I want user to click and show datacard 1 and 2 for edit , otherwise it should be in view mode

 

HOw to do it?  Thanks 

Categories:
  • rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi @bbsin create a variable to hold the display mode and toggle it based on the user's selection.

     

    Variable - UpdateContext({_CardMode: DisplayMode.View})

    Icon OnSelect -  UpdateContext({_CardMode:If(_CardMode = DisplayMode.Edit, DisplayMode.View,DisplayMode.Edit)})

     

    Set the card's dosplay mode to the variable (_CardMode)

     

    Hope this helps 

  • bbsin Profile Picture
    1,994 on at

    hi @rubin_boer

     

    Do you mean 

    i select the icon onSelect = UpdateContext({_CardMode: DisplayMode.View})

     

    and the datacard DisplayMOde =  UpdateContext({_CardMode:If(_CardMode = DisplayMode.Edit, DisplayMode.View,DisplayMode.Edit)})

     

    ?  Thanks

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 352 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard