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 / enable and disable edi...
Power Apps
Unanswered

enable and disable edit icon in gallery

(0) ShareShare
ReportReport
Posted on by 6

How to enable and disable the edit icon for an item within a gallery based on permissions on the item. I have a flow that runs and  changes the permission of created to read only once the item is submitted

Categories:
  • jrletner Profile Picture
    720 Moderator on at

    Hi @Shanu ,

     

    I created an example here. This grid has several users. Two have an "Admin" role and the others have "readonly" roles.

     

    jrletner_1-1706124897013.png

     

    In the DisplayMode property of the edit icon, i did this:

     

    jrletner_0-1706124841553.png

     

    The code is:

     

    If(ThisItem.role = "admin", DisplayMode.Edit, DisplayMode.Disabled)

     

     

    Hope this helps get you on the right track!

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 225

#3
M Bilal Khan Profile Picture

M Bilal Khan 192

Last 30 days Overall leaderboard