cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lee-martin
Post Prodigy
Post Prodigy

Multiple Search boxes

Is it possible to have multiple search boxes (text boxes) to search on a single gallery.

 

IE one to search for a column for Name and one to Search a column for City

So I can find all people called "John" who live in "London"?

 

Thanks
Lee

3 REPLIES 3
RandyHayes
Super User
Super User

@lee-martin 

Yes, you can have as many levels of search and filter that you want.

Not sure how you are searching now, but if it is with the Search function, then you would set your formula such as this:

Search(
    Search(yourData,
        personTextBox.Text, "personName"
    ),
    placeTextBox.Text, "place"
)

 

Or you can use:

Filter(yourData,
    personTextBox.Text in personName ||
    placeTextBox.Text in place
)

 

Keeping in mind that none of the above is delegable to the datasource, so if record limits are less than your datasource receord count (with a max of 2000), then an alternate means of searching should be established.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
lee-martin
Post Prodigy
Post Prodigy

Thanks @RandyHayes  The search works

 

how would I expand this to use 3 or more fields?

RandyHayes
Super User
Super User

@lee-martin 

Are you asking how to have your search go across several fields from one textinput, or how to add more textinput controls to search against other columns?  If the later, then you would just add more using the pattern of the formula I provided.  

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,695)