How to disable or hide the reference icon before every record in a specific list view?

Ma_ April Rais1
Kilo Contributor

Hello Everyone

Is there a way to disable or hide the reference icon find_real_file.png before every record in a specific list view?

I'm using database views for my list view since I needed to show columns from multiple tables, and my request no. is already linked to the request form so I would like to just hide the reference icon or disable it if possible.

Your suggestions would be much appreciated.

Thanks

11 REPLIES 11

Hi April,



This might be a little late, but I've modified the code to use prototype.js instead of jQuery. To use this, just replace the UI Script with the following. Remember to replace the table name if that's only a placeholder value:



(function() {


  addAfterPageLoadedEvent(function () {


  if(window.location.href.indexOf('u_tableabc_list') != -1){


  hideRefIcons();


  }


  });


})();



function hideRefIcons(){


  $$('a[class="btn btn-icon table-btn-lg icon-info list_popup"]').each(function(el) {


  el.hide();


  });


}


Hi Ankur,

with above code , when user is sorting a list , the hover over icon again reappears.

Is there any way to overcome this.

Hi Deepanshanand,

When user sorts the list the list doesn't refresh so I don't think this will have some solution. Need to think on this.

Regards

Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

hi Ankur,

 

is there any dom element that occurs when a mouse is clicked.

above onload can we put some condition like that?

Hey Ankur,

did you found a way for this..