A manager had a request the other day for a filter that would allow him to quickly search for an item in a list by the ID. I had done this numerous times at my former employer but couldn’t remember how to. I reached out to 2 former colleagues (Erich and Erik) and they helped me out.
- Site Actions > Edit Page
- Add or Insert web part
- Choose Forms > HTML Form Web Part
- Edit Web Part
- Click Source Editor button in edit web part pane
- Add the following code
- Click OK
- Choose Connections > Provide Form Values to > Title of the list you wish to filter in the web part’s dropdown
- Leave “Get Filter Values From” and click Configure
- Choose the Consumer Field Name you wish to filter
Note: You cannot choose more than one column with this type of filter - Click Finish
- Click Stop Editing in the Ribbon
You can also find more details around this on Microsoft’s site: LINK.
Do you know how to edit the Javascript to change the search to “contains” rather than an exact match? I have been having a hard time trying to sort this one out.
LikeLike
Unfortunately you can’t with this filter.
LikeLike
Hi,
thank you for the tutorial you have provided on this page. I am wondering if there is any way to add “Sort” functionality rather than “Search” in this webpart?
LikeLike