How to remove popup (i) icon from list view (related list)

lrossy31
Tera Expert

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");
});

         }
     });
})();

7 REPLIES 7

Hi,

Can you try this in an onLoad client script?

AllenAndreas_0-1677867231875.png

 

 

 

function onLoad() {
    $j('.icon-info').hide();
}

 

 

AllenAndreas_1-1677867259000.png

 

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!

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?

Naga Ravindra R
Kilo Sage

Hi @lrossy31 did you got any solution for this requirement?

 

To hide preview for one particular related list.