In this post we will discuss how we can search based on ID column in SmallInputSearchBox or even in the Site Search box also. Recently I got a requirement where business users want to search items from a SharePoint list using the ID field.
Example, If I have a SharePoint list where there are 10 items having ID from 1 to 10, then if user serach for 9 then 9th item should show in the search result. If user search for 7, then item which has ID 7 should display in the search result.
You can also check:
– Reset List Item ID in SharePoint 2013 List
– Steps to freeze header row for title in SharePoint 2013 List view or document Library on scrolling using jQuery
By default search does not work for the ID field, but there is an way you can search based on ID.
In the search box, put like below:
ListItemID:[ID of the List Item]
It should look like below:
Download FREE SharePoint 2019 Installation PDF Guide
This FREE PDF contains, Steps by step guide to install SharePoint 2019 Preview, prerequisites, hardware and software new features. First impression to SharePoint Server 2019 new modern site, modern lists and modern document libraries.
You May Also like the Following SharePoint Online Tutorials: