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 / Display Blank Gallery ...
Power Apps
Answered

Display Blank Gallery if Search Box is Blank

(0) ShareShare
ReportReport
Posted on by 640

Hello All,

 

I have a text input box and a gallery. I'm trying to show records in the gallery only when the user enters any value into the search box. Otherwise, I do not want to display records in a gallery. 

 

My current Gallery item formula: Search('maintable',RS_LookUp__SearchBox.Text,"id","email1")

 

Any suggestions?

 

Thanks,

Omi

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @omi18 

    Please consider changing your Formula to the following:

    If(!IsBlank(RS_LookUp__SearchBox.Text), 
     Search('maintable',RS_LookUp__SearchBox.Text,"id","email1")
    )

     

    I hope this is helpful for you.

  • omi18 Profile Picture
    640 on at

    @RandyHayes  Thanks. This works. 

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