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 / 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
    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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard