Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Display mode for selected Gallery Item Only

(0) ShareShare
ReportReport
Posted on by 621

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

 

  • SebS Profile Picture
    4,146 Super User 2025 Season 1 on at
    Re: Display mode for selected Gallery Item Only

    @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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,522 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,890 Most Valuable Professional

Leaderboard