The CreatorCon Call for Content is officially open! Get started here.

How do you show filters by default on search page

Shannon Burns
Kilo Sage

When you view the results on the kb_search page, it hides the filters by default. 

find_real_file.png

 

How do you get it to show the filters by default instead?  I reviewed the code for the knowledge search widget on that page and looked at the options, but I am obviously missing something.

 

Thanks,
Shannon

6 REPLIES 6

Ryan Magsam1
Mega Guru

Here is a solution that does not require cloning the widget. It will cause slightly odd behavior with the Filter button, but I think the trade-off is worth it. You could add some CSS to the page or instance record to hide the filter button if you want.

 

Go to the column record that contains the facet widgets and change the CSS class from "hide-filters" to "show-filters".

 

Go to the column record that contains the search result widgets and change the CSS class from "expanded-width" to "original-width".

MonfardiniS
Tera Contributor

It is frustrating that there is not a OOTB property to toggle this on or off by default as it seems a very normal ask.
I have put an idea in for this anyways if anyone on here is keen and would like to upvote it here is the link 
https://support.servicenow.com/ideas?id=view_idea&sysparm_idea_id=59080c58476b629411eaf24c736d43fb&s...