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 / Display mode for selec...
Power Apps
Unanswered

Display mode for selected Gallery Item Only

(0) ShareShare
ReportReport
Posted on by 690

Hi -I have a context variable set up for display mode in a gallery basically if I click yes, no gets grayed out and vice versa. Can I set this up where each item in the gallery operates independently? If I click one they all follow the logic. 

 

Thx 

ctedesco3307_0-1682612216301.png

 

Categories:
I have the same question (0)
  • SebS Profile Picture
    4,582 Moderator on at

    @ctedesco3307 

     

    Yes, You can do this but You will need to change few things

     

    1. Change UpdateContext({DisplayMode: DisplayMode.Disabled}) to something like this

     

     

    UpdateContext({varDisplayModeDisabled:true})

     

      

    2. Than Add another Variable

     

     

    UpdateContext({varItem:ThisItem})

     

     

    3. Than Head to DisplayMode Property and place this code

     

     

    IF(VarDisplayModeDisaable && varItem.ID = ThisItem.ID,DisplayMode.Disabled)

     

     

    This should do the trick 🙂

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard