web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / DisplayMode.Disable do...
Power Apps
Unanswered

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:
I have the same question (0)
  • anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on at
    Re: DisplayMode.Disable dosn't work

    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
    152,843 Most Valuable Professional on at
    Re: DisplayMode.Disable dosn't work

    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
    Re: DisplayMode.Disable dosn't work

    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
    Re: DisplayMode.Disable dosn't work

    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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard