Forum Discussion
Jaswanthi
Oct 27, 2022Copper Contributor
How to filter the list items by using Search box webpart
I created a webpart page,and i added search box webpart and also i added list,Based on the search box whatever typing it will filter the list Items.
Jaswanthi
Oct 31, 2022Copper Contributor
In modern sharepoint ,I added PnP-Search box and a list webparts in site page,I made a connection to that list and Search-box the the list items are not filtering what ever i searched in search-box.Could you please provide me better approach to filter the list items using pnp-search box
ganeshsanap
Oct 31, 2022MVP
Jaswanthi Can you try using PnP Search Box web part with Search Results web part?
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
- JaswanthiOct 31, 2022Copper ContributorYa i used Search box web part with Search Results Web part,But it is filtering whole sharepoint having that keyword in search box,I dont want all Sharepoint lists ,I want to filter the one list items.
- ganeshsanapOct 31, 2022MVP
Jaswanthi You have to write search query using Path to retrieve/filter items from specific list only, like:
path:https://contoso.sharepoint.com/sites/sitename/Lists/yourlist contentclass:sts_listitem
Check:
- Can Search Result Web Part be used to show items from a specific list?
- Search Results - Data sources
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
- JaswanthiOct 31, 2022Copper ContributorWhere i have to give that path?