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 / Adding a Search Bar to...
Power Apps
Answered

Adding a Search Bar to a Gallery

(0) ShareShare
ReportReport
Posted on by 136

Is it possible to add a Search Bar that can search all Data within the Gallery.

For instance, if I search 'Open' it would provide me with listings of any item that has the word Open within it?

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,797 Most Valuable Professional on at

    Hi @kevtun1982 ,

    You actually search In the Items of the Gallery. Note that Search() is not Delegable, so you will get a Delegation warning and this will not work on data sets larger than your Delegation (500-2000) limit.

    Search(
     Filter(
     YourListName,
     --- your gallery filter here ---
     ),
     "YourSearchBoxName.Text",
     "Listings"
    )

     

    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.

     

  • AsanKani Profile Picture
    710 on at

    You can read this article. This will help you 
    How to search and filter records in PowerApps (inc delegation) (collab365.community)

  • kevtun1982 Profile Picture
    136 on at

    @WarrenBelz 

    I am not 100% sure what you mean. I currently have code within my 'Items' of the Gallery. This is for some dropdown filters that I have.

    I was hoping to add a search bar also. I am not a coder and I wouldn't know where to add the code you have provided.

  • AsanKani Profile Picture
    710 on at

    @kevtun1982  Gallery Items Property to use below formulae

     

     

    If(IsBlank(TextInput_Search.Text),DataSource, Filter(DataSource,StartsWith(Column,TextInput_Search.Text)))

     

     

     TextInput_Search.Text is using for Search Text


    Did this post solve your problem? Please click Accept as Solution so that others may find it more quickly.
    If you liked my response, please give it a Thumbs Up.

  • WarrenBelz Profile Picture
    154,797 Most Valuable Professional on at

    Hi @kevtun1982 ,

    What are the current Items of the gallery?

  • kevtun1982 Profile Picture
    136 on at

    Hi @WarrenBelz 

    I have provided a snip of everything in the gallery. It is the same Gallery that I added the dropdown menu to.

     

    powerapps12.png

  • WarrenBelz Profile Picture
    154,797 Most Valuable Professional on at

    @kevtun1982 ,
    I simply want the Items property of the Gallery (please provide it in Text) as you have not given this to date. I will then add the search syntax for you. Can you also provide the name of your Search Text box and confirm the field it is searching is Listings.

  • kevtun1982 Profile Picture
    136 on at

    Hi @WarrenBelz 

    I am really sorry. I probably sound pretty dumb to you. This is entirely my first time messing with code.

     

    So the Items property of the gallery is;

     

    If(
    StatusDropdown.SelectedText.Value="All",
    NewNCR,
    If(
    CategoryDropdown.SelectedText.Value="All",
    Filter(NewNCR, Status.Value = StatusDropdown.SelectedText.Value),
    Filter(NewNCR, Status.Value = StatusDropdown.SelectedText.Value && Category.Value = CategoryDropdown.SelectedText.Value)
    )
    )

     

    The search box is simply 'SearchBox1'

     

    I was hoping that it could search all fields within the Gallery. I am trying to make it easy for the users to search for a word and for it to load anything with that word in it.

     

    Is this possible?

     

    Kevin

  • Verified answer
    WarrenBelz Profile Picture
    154,797 Most Valuable Professional on at

    Hi @kevtun1982 ,

    Note that Search() is not Delegable, so you will get a Delegation warning on this

    Search(
     Filter(
     NewNCR,
     (
     StatusDropdown.Selected.Value="All" || 
     Status.Value = StatusDropdown.Selected.Value
     ) &&
     (
     CategoryDropdown.SelectedText.Value="All" || 
     Category.Value = CategoryDropdown.Selected.Value
     )
     ),
     SearchBox.Text,
     "Listings",
     "OtherField1",
     "OtherField2"
    )

     Replace your other fields on the last two and add any more.

     

    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.

  • WarrenBelz Profile Picture
    154,797 Most Valuable Professional on at

    Hi @kevtun1982 ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard