Skip to main content

Notifications

Power Apps - Power Apps Pro Dev & ISV
Unanswered

Conditional DisplayMode in gallery control

Posted on by 4
Hi,
Let's say there are 5 items in a gallery control with a column named 'Status'. Out of those items, 2 has a Status as Blank while other 3 items have some text value. I wish the displaymode of the gallery control to be enabled if the status is blank while for other records it should be disabled. Is it possible to achieve for a gallery control?
  • RS-06111158-0 Profile Picture
    RS-06111158-0 4 on at
    Conditional DisplayMode in gallery control
    Hi @mmbr1606,
    It is throwing an error as Name isn't valid. 'ThisItem' isn't recognized.
  • mmbr1606 Profile Picture
    mmbr1606 9,998 on at
    Conditional DisplayMode in gallery control
    hey,
     
     
    this should to the trick:
     
    If(IsBlank(ThisItem.Status), DisplayMode.Edit, DisplayMode.Disabled)
    

    you need to set it in the displaymode property of whatever you want to show/hide
    ​​​​​​​
    if it helped please mark as verified answer
     
    cheers

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,591

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,090

Leaderboard