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 / DisplayMode.Disable do...
Power Apps
Answered

DisplayMode.Disable dosn't work

(0) ShareShare
ReportReport
Posted on by 151

Hey,

 

my funktion dosn't work on the Button. The Part with the Visible Label is working but the first funktion with checking out the Gallery is not working. When my Gallery empty = DisplayMode.Disable ... Waht is the solution?

 

LookUp( Gallery8_1.AllItems; IsEmpty(Gallery8_1.AllItems) || Label14_9.Visible = true || Label14_6.Visible = true ;DisplayMode.Disabled) 
Categories:
  • anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on at

    hi @MiniMax92 ,

     

    IF(IsBlank(Gallery8_1.AllItems) || Lable14_9.Visible = true || Lable14_6.Visible = true , DisplayMode.Disable) 

     

     

    put this formula on gallery displaymode property than it should work fine.

     

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Verified answer
    WarrenBelz Profile Picture
    156,526 Most Valuable Professional on at

    Hi @MiniMax92 ,

    Try

    If(
     CountRows(Gallery8_1.AllItems) = 0 || Label14_9.Visible || Label14_6.Visible;
     DisplayMode.Disabled;
     DisplayMode.Edit
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • MiniMax92 Profile Picture
    151 on at

    Hey thanks for your request,

    but i need a function for my button. The button should Disable if gallery empty.

  • MiniMax92 Profile Picture
    151 on at

    This is absolutely logical and ez. Why dosn`t work when I tried it?.. 🤔 Idk. Its still working and iam happy 😄
    Thanks and have a nice day!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard