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-03-2023 10:13 AM - edited ‎03-03-2023 10:16 AM
Hi,
Can you try this in an onLoad client script?
function onLoad() {
$j('.icon-info').hide();
}
Ensure that after you save the client script, uncheck the box for "Isolate script".
This does incorporate DOM manipulation, which isn't really recommended, however, with this scenario and what you're trying to do, I see little issue with it causing any problems.
I tried the above and it works for me. Shows for a very split second as the page loads, but then it's gone. I believe if you do that for your application and table(s), it'll work.
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-07-2023 05:45 AM
Hello Allen,
This works but if I have multiple related list inside a main form it will hide all of the (i) on all the related lists and I only need to have the preview icon removed only on one related list. Can that be done?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-15-2024 10:49 PM
Hi @lrossy31 did you got any solution for this requirement?
To hide preview for one particular related list.