How to remove popup (i) icon from reference 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");
});
}
});
})();

6 REPLIES 6

Community Alums
Not applicable

Hi @lrossy31 ,

In dictionary of request item field, set attribute as "ref_decoration_disabled".

SandeepDutta_0-1677684641470.png

 

Another way would be using DOM, whihc is not recommended by serviceNow

Document.getElementById)'icon id').style.display='none';

Claude DAmico
Kilo Sage

Prince Arora
Tera Sage
Tera Sage

@lrossy31 ,

 

Please follow these steps:

  1. Navigate to System Definition > Dictionary
  2. Filter the list to find the reference field of which you want to disable the information icon
  3. Open the record (eg. Caller)
  4. Add this line to the Attributes: ref_decoration_disabled=true
  5. Save/Update the record
    PRINCE_ARORA_0-1677684978269.png

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact.

 

Sonu Parab
Mega Sage
Mega Sage

Hi @lrossy31 , Have a look this post How to disable "I" button from reference field in form page 

 Thank you