How to remove popup (i) icon from reference list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2023 07:18 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-01-2023 07:31 AM
Hi @lrossy31 ,
In dictionary of request item field, set attribute as "ref_decoration_disabled".
Another way would be using DOM, whihc is not recommended by serviceNow
Document.getElementById)'icon id').style.display='none';
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2023 07:31 AM
Check out this post. https://www.servicenow.com/community/itsm-forum/hiding-i-icon-in-the-list-view-of-a-table/m-p/565319
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2023 07:37 AM
Please follow these steps:
- Navigate to System Definition > Dictionary
- Filter the list to find the reference field of which you want to disable the information icon
- Open the record (eg. Caller)
- Add this line to the Attributes: ref_decoration_disabled=true
- Save/Update the record
If my answer solved your issue, please mark my answer as ✅Correct & 👍Helpful based on the Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2023 07:38 AM
Hi @lrossy31 , Have a look this post How to disable "I" button from reference field in form page
Thank you