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 / Gallery Item selectabl...
Power Apps
Unanswered

Gallery Item selectable if

(0) ShareShare
ReportReport
Posted on by 33

Hi

I am creating a time sheets app and using lists to store data.

I have a gallery showing the list in app and allowing for some changes to be made. When selected the item becomes editable, however I would like to prevent changes being made if the work has been approved. I have tried to show what I mean in this image:

Capture.JPG

At first I thought I could do this by disabling selectable on the gallery and using a pencil icon to select the item, this did not work.

I then tried using an if statement in the gallery selectable but i could not get it to work.

 

This might not be possible but any help is very much appreciated.

SMC

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @SMCApps 

    put a triangle on in the gallery and make a condition on it displayMode And visibility, so if it's approved let the displayMode of the triangle disabled and it visibility = true , Else displayMode.Edit And visibility =false

    Something like that:

    on DisplayMode: If(ThisItem.Status=Approved,DisplayMode.Disabled,DisplayMode.Edit)
    on Visibility: If(ThisItem.Status=Approved,true,false)

    Please consider my answer as an accepted solution if it fix your problem.
    regards

  • PA-15051058-0 Profile Picture
    33 on at

    Hi @OussamaOsman 

    I have done this already, when the item is selected the fields become editable, however you can click anywhere within the item to select it which I cannot figure out how to change so it is just the icon.

    SMC

  • PA-15051058-0 Profile Picture
    33 on at

    Video of what I mean here:

    Media1_AdobeExpress (2).gif

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 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard