Notifications
Announcements
Hello,
Im trying to make an app where it begins with only a search and a combo box. When the user inputs something into either one or both a gallery list is shown with those filters applied. I figured it out and the gallery isn’t shown when nothing is selected except for when I first open the app. I have to input something and erase it and then the screen is blank and works properly. How would I make that gallery hidden even when I have just opened it?
Thank you.
Hi @Anonymous ,
Make the Gallery Visible
CountRows(Self.AllItems) > 0
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.
Visit my blog Practical Power Apps
Thank you for taking the time to answer! It still isn’t exactly working the way I want. To clarify, I want to open up the app and have a blank screen with a search bar and combo box. When a user types into that search bar with a persons name, a gallery will pop up with that persons info. Or if they choose which department they are in with the combobox, a gallery with everyone in that department will show up. If they unselect or erase it, the screen will be blank again. I am current using this on the visible property of the gallery:
!IsEmpty(DepartmentFilter.SelectedItems) || !IsBlank(Name_Filter)
It works for when I select and unselect items. The gallery disappears when i unselect something and appears again when I select another thing. The problem I am having is when I initially open the app. The gallery that I want to be hidden is shown when I first open the app until I select and then unselect something?
@Anonymous ,
Another alternative on the Visible (you need to add the output of your control)
Len(DepartmentFilter.Selected.????) > 0 || Len(Name_Filter) > 0
You might also reset those two at Screen OnVisible
Just checking if you got the result you were looking for on this thread. Happy to help further if not.
Thank you so much for your help, it solved my probelm. I have tried multiple times to accept your solution however, it keeps leading me to a page saying that authentication failed.
I tried it again and it worked!
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268