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 09:34 AM
My apologies to you all it is not for a reference field but how to hide the (i) on the list view of the related list? Similar to what is shown below.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2023 03:26 PM
Here is a working solution in my PDI. Please modify to fit your need.
NOTE: I got the ID by inspecting one of the info icons and looking at the HTML to find the ID of the table it was in. Since it has dots in the ID, I had to prepend the dots with the double-slash.