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.

Remove preview icon in Catalog item

Em10
Tera Contributor

Hi

 

I tried to disable preview icon from reference filed used on sys_user table. We have many employees' name, manager name used reference variable but want to disable preview icon. 

I've seen many posts to use " ref_decoration_disabled=true", however it doesn't work for me. If I have employee's name use reference field on sys_user table, should  I add "ref_decoration_disabled=true" in Attributes of Name column lable in sys_user table to get that icon disabled?

Found to modify CSS on page but I am not sure which page to use. 

Could someone advise me to achieve my golas? Thank you. 

 

Em10_0-1679461728432.png

 

 

2 REPLIES 2

vamsiP
Tera Contributor

Hi @Em10 ,

 

This looks like a string field , why would you have a reference Icon on string field?

 

Em10
Tera Contributor

Hi @vamsiP 

 

I have employe name field in the port form. In the backend, that employee name is the reference variable type to sys_user table. Since I used reference variable type on the employee name field, the preview icon automatically appeared in the portal form. Some suggested to use "ref_decoration_disabled=true" on the reference field to disable Preview icon. I was trying to add "ref_decoration_disabled=true" but I don't know where to add that. So, I thought it could be name label on the sys_user table? 

If this is not the right one, do you know where to add "ref_decoration_disabled=true" or how to get Preview disabled?

 

Em