Hide list view filter icon

Tharun_M
Tera Contributor

Hi all,

 

There is way to show filters and breadcrumbs only for users with particular roles using script include or by configuring list control for a particular table. But in this way we can configure for only one table at a time. Is there a way where we can configure this globally?

 

 

1 ACCEPTED SOLUTION

tharun_kumar_m
Mega Guru

Hi Tharun,

 

You can create a script include with name "{table_name}DisplayFilter" in you case "globalDisplayFilter" and write a function as written below.

 

function globalDisplayFilter() {
var answer = true;
return answer;
}

 

Note: The name of the function and name of the script include must be same.

 

Thanks,

Tharun Kumar.

View solution in original post

13 REPLIES 13

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Tharun_M 

 

Experts are already on it, but I would like to know what is use case of same? Why only for few users you want to hide/ show.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi Atul,

Thanks for your reply.

 

In our instance we have a custom role and the filter icon is visible only to the users with that custom role. Now I have to make the icon visible to all the users in all the tables. I couldn't find where this configuration((filter icon visible only to users with particular role) is defined in our instance.

Hi @Tharun_M 

 

Thanks for clarification. Got the point. You can follow the suggestions provided by @Sohail Khilji  @Anil Lande 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

tharun_kumar_m
Mega Guru

Hi Tharun,

 

You can create a script include with name "{table_name}DisplayFilter" in you case "globalDisplayFilter" and write a function as written below.

 

function globalDisplayFilter() {
var answer = true;
return answer;
}

 

Note: The name of the function and name of the script include must be same.

 

Thanks,

Tharun Kumar.