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 / Filter Gallery only wh...
Power Apps
Answered

Filter Gallery only when text is entered into search box

(0) ShareShare
ReportReport
Posted on by

Hello Everyone,

 

I have a Gallery that displays all records from a list. I thought this would be an easy one but I'm struggling to get the search box to work. I can get it working fine with the following, but this doesn't display anything until something is entered into the search box:

 

 

Filter('LineName',ID = inpSearchBox.Text)

 

 

What I need is for all records to be displayed until an ID is entered into the search box. I've tried this and it doesn't error but it brings back no results, regardless if the search box is empty or not:

 

 

If(IsBlank(inpSearchBox), Filter('ListName',ID = inpSearchBox.Text))

 

 

What am I missing here as in my head this should be really simple? I haven't done a great deal with Gallery's and filtering so any help would be much appreciated as I'd also like to include filtering on a column called Status, one called Risk Rating and another called Meeting Details but cant even get a simple search working at the minute!

 

ID is the ID field, Status, Meeting Details and Risk Rating are drop downs. 

Categories:
I have the same question (0)
  • Verified answer
    Joel CustomerEffective Profile Picture
    3,224 on at

    One thing is you are missing what to do if the search is blank

    another thing is you are telling it to filter by the searchbox if the searcbox is blank

    Should be like the following:

     

    If(!IsBlank(inpSearchBox), Filter('ListName',ID = inpSearchBox.Text),Listname)

    You should do !IsBlank because that gets it if there is a value in the search box.

  • Verified answer
    eka24 Profile Picture
    20,925 on at

    Try using search;

    Search('LineName',inpSearchBox.Text,"ID", "Column2","Column3")

     

    Or

     

    To use Filter;

    If(IsBlank(inpSearchBox),

    LineName,

    Filter('LineName',ID=inpSearchBox.Text)

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

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
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard