Add the search bar to the header Menu in Service Portal

SN Emy
Tera Guru

Hi All,

I need to add the search bar to the top of the page (See picture) on the Service Portal.

Can you help please?

 

find_real_file.png

1 ACCEPTED SOLUTION

martinrouxfx
Tera Guru

Thank for the information !

But when I paste this, 

<li class="search-widget">
   <sp-widget widget="data.typeAheadSearch" />
</li>

and this

data.typeAheadSearch = $sp.getWidget('typeahead-search', options.typeahead_search);

I lost my Knowledge, Catalog requesuests... links

find_real_file.png

View solution in original post

9 REPLIES 9

I've solved this issue with adding this to HTML part: 

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

and adding nothing to server script 

Hey!!

Did you figure it out how to keep both the search bar and the menu items?

Thanks in advance!!

Best regards,

Nathalia

sris
Kilo Contributor

How to call widget in header menu. I have cloned the typehead widget but it's not populating the searchbar at header menu

Lorna
Tera Contributor

Hi Sris were you able to find a solution to this?

Hi Lorna, did you find a solution to this?