How to control the view of the 'i' icon or remove it completely

Alon Grod
Tera Expert

Hi,

In my record producer one of the fields is reference to customer_account table.
OOB functionality there is an ('i') icon to preview the record.
How can I control the the view that will be shown on click or how can I disable the ('i') icon completely ?

AlonGrod_0-1771227394249.png

 

9 REPLIES 9

Pratiksha
Mega Sage

 

You can use a Lookup Select Box variable type instead of a Reference variable. This approach requires no CSS and does not display the Info Icon.

If CSS is necessary

 

 
.add-on > button.lookup { display: none; }

 

@Pratiksha  but i have multiple record producers with multiple reference fields, i need a better solution

Tanushree Maiti
Mega Sage

Hi ALon,

It can done using Client script with DOM manipulation (where isolate script is not checked), If it is role specific you can call script include and check the logged in user role.

For code/configuration: How to remove popup (i) icon from list view (relat... - ServiceNow Community

 

Using UI script, from list view, that 'i' icon can be controlled. refer : Solved: Hiding (i) icon in the list view of a table - ServiceNow Community

 

Please refer this links, see if it helps you:

Limit access to the "preview this record" button b... - ServiceNow Community

 

Please mark this response as Helpful & accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

@Tanushree Maiti hi im talking about service portal.

I tried to add to the variable attribute, but it still not working

ref_decoration_disabled=true