Adding search bar to the header menu on the service portal

Rahul Raja Sami
Tera Guru
Adding search bar to the header menu on the service portal.
 
1 ACCEPTED SOLUTION

Hi
Find the Widget header menu under SP Header Menu 
and clone it 
add the 

<li class="search-widget header-menu-item">
   <widget id="typeahead-search"></widget>
</li>

as the first li and add the ag templates as we have for the OOTB header menu.
everything works now.

View solution in original post

3 REPLIES 3

Eswar Chappa
Mega Sage
Mega Sage

Hi @Rahul Raja Sami Please ho through the below community article:

 

https://www.servicenow.com/community/itsm-forum/add-the-search-bar-to-the-header-menu-in-service-por...

 

Thanks & Regards,

Eswar Chappa

Mark my answer correct and Helpful if this helps you 😀

Hi Eswar,
I tried this but not working, it is showing as Help Search on the header menu and when we click on the Help search then it is showing the search bar there.


so what I did is I duplicated the type ahead search widget and added that to a new page where I can call it from menu header.
correct me if I am wrong.


Hi
Find the Widget header menu under SP Header Menu 
and clone it 
add the 

<li class="search-widget header-menu-item">
   <widget id="typeahead-search"></widget>
</li>

as the first li and add the ag templates as we have for the OOTB header menu.
everything works now.