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 / Disable item in gallery
Power Apps
Unanswered

Disable item in gallery

(0) ShareShare
ReportReport
Posted on by 8

I have a gallery that displays cases (numbered 1, 2, 3...). When a user selects a case, the app navigates to another screen where the user needs to answer some questions related to this case. Then clicking "back to case list" button takes the user back to the first screen (cases list gallery). 

When returning to screen one I want to disable the case that was just selected, so the user will not be able to select it again.

How do I do that? I was able to disable it based on selected item, but then when the user selects case #2, case #1 is enabled again.

Would appreciate your help. Thank you.

Categories:
  • Vijay Tailor Profile Picture
    2,961 on at

    HI,

    There are Not direct Properties to disable the Gallery Record.

    But I can suggest you Some Workaround.

    Change the TemplateFill Color Properties Based on Condition. Like if ThisItem.Status="In-Progess",gray,Red))
    Navigation to screen based on Condition. LIke if (ThisItem.Status="In-Progess",Navigate(Screen 1)).

    Hope this solution helps you to resolve your Issue.

  • spa8 Profile Picture
    8 on at

    The navigation will work, but I need case #1 to stay disabled after it was selected once.

  • Vijay Tailor Profile Picture
    2,961 on at

    Hi, Can you please Describe here, exactly want you to want to achieve. with Screenshot.

  • spa8 Profile Picture
    8 on at

    powerapps.jpg

     

    Hope this helps. Thank you.

  • spa8 Profile Picture
    8 on at

    @VijayTailor Hope this helps, but I'm afraid it's not possible.

  • Vijay Tailor Profile Picture
    2,961 on at

    Hi
    Another Idea For achieving the disable look
    you and Selected all the AllItem into a group and Set the DisplayMode.Disable for Group DisplayMode or without creating a group also you can do but in that scenario, you have to do for all the Display Things in the template.
    Please Find attache Screenshot for reference.

    VijayTailor_0-1601025803973.png

    Hope this solution helps you to resolve your issue.

    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

    Please Vote for my idea if you feel, that will help you in the future or good to have in power app.
    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Ability-s-to-Select-Icon-from-UIFabric/idi-p/694921

    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Preview-Mode-for-All-the-Device-Like-Phone-Tablet-Vertical/idi-p/694891




  • spa8 Profile Picture
    8 on at

    @VijayTailor Thank you so much for replying. I still don't see how the group will help, as it affects all the groups. It is going to be changed with the next click on the next item. 
    Going to look for a work around or changing the design completely. 

  • Vijay Tailor Profile Picture
    2,961 on at

    Hi,

    Please Use Grouping for all the Fields /Content for Gallery.

    why Using Group - Answer is Instead of Setting the DisplayMode for all manually you can create a group and Set the DisplayMode for the group then automatically the same value is set for all the Fields/ Contents.

    As I understood your requirement you can achieve your required functionality by this ways.

    VijayTailor_0-1601031079406.png

    but if you think not feasible then you can go for change design as per your wish



  • AlixCalon Profile Picture
    9 on at

    Thanks for this suggestion! Grouping the gallery item fields worked great for me. I was able to change gallery items that were updated to DisplayMode.Disabled. I grouped everything in the gallery item and set a conditional statement for its display mode - If('Text' in Table.Column, DisplayMode.Disabled, DisplayMode.Edit). So, if the 'text' from my gallery item appears in the updated column of my separate update table then that gallery item will be disabled. Thanks again!

  • sumanguha82 Profile Picture
    6 on at

    In the Galley you can use a Transparent Rectangle Icon, and based on your condition, you can show / hide that row item. 

    sumanguha82_0-1643817614536.png

     

    Hope it may help. 

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 250

#3
Mohsin Ali Profile Picture

Mohsin Ali 225

Last 30 days Overall leaderboard