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:
-: FREE PDF e-Book Download :-
51 JSOM Examples in SharePoint Online
You May Also like the Following SharePoint Online Tutorials: