How to remove popup (i) icon from list view (related list)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2023 10:04 AM
Trying this option to make the (i) icon from related list removed to not show preview popup. However, I am working on a scoped application and cannot get the icon to be removed. Below is what I have used. Will appreciate any help with this. Using table like this x_1234_cars_list.
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() {
//I would like to hide Preview Icon for Incident Table. You may add ( or || ) any table of your choice in this (or) condition.
if ((window.location.href.indexOf('x_1234_cars_list_list') != -1)) {
//If Incident, then use "#incident_table" (just add _table to the table name)
$j('#incident_table > tbody > tr > td > a[class="btn btn-icon table-btn-lg icon-info
list_popup"').each(function() {
$j(this).css("display", "none");
});
}
});
})();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2023 10:14 AM
Hi,
Just to clarify, you are only wanting to do this for your scoped app? Not the whole platform, correct?
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2023 10:25 AM
that is correct.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2023 10:35 AM - edited ‎03-03-2023 10:07 AM
Hi,
It could be helpful to all of us to include where you got that script from so we can see the context, etc.
From the script you've provided and the instructions, you missed a few pieces?
Try using:
(function() {
addAfterPageLoadedEvent(function() {
//I would like to hide Preview Icon for Incident Table. You may add ( or || ) any table of your choice in this (or) condition.
if ((window.location.href.indexOf('x_1234_cars_list_list') != -1)) {
//If Incident, then use "#incident_table" (just add _table to the table name)
$j('#x_1234_cars_list_table > tbody > tr > td > a[class="btn btn-icon table-btn-lg icon-info
list_popup"').each(function() {
$j(this).css("display", "none");
});
}
});
})();
You still have #incident_table in your script when this isn't about the incident table, right?
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2023 07:19 AM
Hello Allen,
Thanks for the reply. I got the sample code from this link Solved: Hiding (i) icon in the list view of a table - ServiceNow Community.
I tried the one you provided and made the changes to the actual table I need to remove the (i) and it still showing.