Hiding (i) icon in the list view of a table

Akhilesh_aa07
Tera Contributor

Hi folks,

How to hide (i) icon from the list view of a table, so that one can not open the record by clicking on it.

If it is possible please suggest me steps to configure.

Thankyou!

1 ACCEPTED SOLUTION

Mohith Devatte
Tera Sage
Tera Sage

Hello @Akhilesh ,

You can write a UI script for it to hide the icon

please follow below steps

1)Navigate to UI scripts in navigator

2)Open the table and create a new record and select type as desktop

script: 

In this in indexOf()  you just need to change your table backend name and do not remove _list

(function() {
 addAfterPageLoadedEvent(function () {
if((window.location.href.indexOf('incident_list') != -1)){ // replace your table backend name but do not remove_list
hideInformationicon();
 }
 });
})();
function hideInformationicon(){
$j('a[class="btn btn-icon table-btn-lg icon-info list_popup"').each(function() {
 $j(this).css("display", "none");
 });
}


find_real_file.png

Please mark my answer correct if it helps you

View solution in original post

4 REPLIES 4

Mohith Devatte
Tera Sage
Tera Sage

Hello @Akhilesh ,

You can write a UI script for it to hide the icon

please follow below steps

1)Navigate to UI scripts in navigator

2)Open the table and create a new record and select type as desktop

script: 

In this in indexOf()  you just need to change your table backend name and do not remove _list

(function() {
 addAfterPageLoadedEvent(function () {
if((window.location.href.indexOf('incident_list') != -1)){ // replace your table backend name but do not remove_list
hideInformationicon();
 }
 });
})();
function hideInformationicon(){
$j('a[class="btn btn-icon table-btn-lg icon-info list_popup"').each(function() {
 $j(this).css("display", "none");
 });
}


find_real_file.png

Please mark my answer correct if it helps you

Hello Mohith,

I tried this solution to my scoped application and cannot hide the (i) from my related list table view. Is there anything else to be done to make this UI Script to work on a scopped app?

I Have a report added to a dashboard, customer don't want to see this i icon on this report, how can I remove it?
under window.location.href.indexof I have given dashboard link but still i icon is visible. 

 

Best Regards,

Pooja

Musab Rasheed
Tera Sage
Tera Sage

Hello,

Here is the solution

https://community.servicenow.com/community?id=community_article&sys_id=a9747071dbaccd90fd8d2b691396191f

First of all I doubt if this will work in Workspace and even if it works I insist you to avoid implementing it because servicenow doesn't recommend doing DOM manipulation.

Regards

Please hit like and mark my response as correct if that helps
Regards,
Musab