I want to hide the search bar at the top of the portal.

bonsai
Mega Sage

I want to disable the search bar for users.

I'd like to implement this using no-code methods if possible. Are there any good ways to do this?

I want to allow users to access all other elements of the site.

 

kensaku.png

 

 

1 ACCEPTED SOLUTION

@bonsai 

check this

How to hide search bar in the header of the employee center on specific pages? 

also check this

Unable to Hide Search bar in Employee Center Header section 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

6 REPLIES 6

Tanushree Maiti
Kilo Patron

Hi @bonsai 

 

Identify the page from where you want to remove search ( check the browser URL id )

 

Now go to Native UI , type service portal in navigation  ->page -> Remove the Search widget (from that specific page)

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

HarishKumar6668
Tera Contributor

HI @bonsai,

 

I don't think we can set the visibility of the search bar without modifying the code in Header Widget.

If you want to disable it by changing the code below are the simple steps.

  1. Clone the Employee Center Header Widget that is used in the EC Theme Record.If it is different portal clone the header widget used in that portal theme.
    EC-Theme.png
  2. Comment out the below HTML Code after cloning the widget and save it.
    Screenshot 2026-04-01 at 12.08.00 PM.pngScreenshot 2026-04-01 at 12.08.31 PM.png
  3. Replace the newly created header in EC-Theme record.
    Screenshot 2026-04-01 at 12.12.09 PM.png
  4. Restricted Caller Access (RCA) record will be created as the script include(todoPageUtils) used is having caller restriction.By default the status of this record will be "Invalidated" change it to the "Allowed".
    RCA.png

That's it Search bar will be disabled in the header menu.
ESC SS.png

 

If this works for you, please mark it as Helpful or Accept it as the Solution.

Regards,
Harish