Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Hide "Preview Record" icon from the a related list record

janindiadoc_1
Tera Guru

Hi All,

Looking for a solution to hide the preview record icon from the related list view for a backend form as below (highlighted yellow).

janindiadoc_1_0-1716249580001.png

Thanks

1 ACCEPTED SOLUTION

Hi Ankur,

 

It worked with the below code. This code works in Global scope and didn't work in scoped client scripts.

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

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@janindiadoc_1 

no other way.

you need to use UI script

check below link and enhance the script as per your requirement

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

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Hi Ankur,

I have tried the script earlier from the post you shared , but its not working. I'm doing this in a scoped app.

Thanks

Is there a way to hide the button in onload script. Tried using

$j('btn btn-icon table-btn-lg icon-info list_popup').hide(). This didn't work as well.

Hi Ankur,

 

It worked with the below code. This code works in Global scope and didn't work in scoped client scripts.

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