Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to Deactivate filter option on list view

TejasSN_LogicX
Tera Contributor

TejasSN_LogicX_0-1763692498410.png

how to deactivate only this filter option not others  in list view ? 

1 ACCEPTED SOLUTION

@TejasSN_LogicX 

As already mentioned I will recommend keeping it.

If you still want to hide it from native for 1 table then you can create UI script and use DOM manipulation to hide

Note: DOM is not recommended

UI Script:

$j(document).ready(function() {
    var url = window.location.href;
    if (url.indexOf('incident_list') > -1) {
        // add logic to hide filters
        document.getElementById('incident_hide_search').style.display = 'none';
    }
});

AnkurBawiskar_1-1763715918800.png

 

Output

AnkurBawiskar_0-1763715877519.png

 

💡 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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

7 REPLIES 7

VaishnaviK43271
Tera Contributor

You cannot disable the default filter bar in modern UI (UI16/Next Experience).
It is a built-in part of the list view.
You can hide certain filters using ACLs or UI Policies, but not remove the bar.

 

Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for.

Thank You

Ankur Bawiskar
Tera Patron
Tera Patron

@TejasSN_LogicX 

nope you can't

Why you want to remove that?

it helps agents to search the incidents easily and quickly

💡 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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@TejasSN_LogicX 

As already mentioned I will recommend keeping it.

If you still want to hide it from native for 1 table then you can create UI script and use DOM manipulation to hide

Note: DOM is not recommended

UI Script:

$j(document).ready(function() {
    var url = window.location.href;
    if (url.indexOf('incident_list') > -1) {
        // add logic to hide filters
        document.getElementById('incident_hide_search').style.display = 'none';
    }
});

AnkurBawiskar_1-1763715918800.png

 

Output

AnkurBawiskar_0-1763715877519.png

 

💡 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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar  ,

I’m really inspired by you. I want to learn ServiceNow in depth and achieve true expertise in it. Could you please guide me or share some knowledge on how to reach that level? I see your contributions everywhere in the community, and they are really impressive. Your guidance would mean a lot to me. Please...

 

thanks ..

Tejas 

adhalraotejas1018@gmail.com