Help: How to remove reference icon on specific fields of catalog item?

Snehal2
Kilo Guru

Hi developers,

Can any one help me on How to remove reference icon(which appears on reference field) on specific fields of catalog item.

Thanks,

Snehal m

 

24 REPLIES 24

Hi Snehal,

create a onload client script; UI Type as Mobile/Service Portal

get the html id for that ref icon and use it to hide

sample script below:

function onLoad(){

$j('#id').hide();

}

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

Hi Ankur,

I tried, but it didnt work.

find_real_file.png

Obtained the Id as below:

find_real_file.png

 

I have made Isolate script =false. But the reference icon is not getting hidden. Can you please let me know if I am making mistake ?

Regards,

Snehal M

Hi Snehal,

you want to make it onLoad or onChange?

Regards
Ankur

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

Hi Ankur,

Both On load and on change..

I will write onchange client script and make it run on load as well. Will be update the script once the onchange client script for the hiding reference icon works.

regards,

Snehal

Hi Snehal,

please check below link for portal related

https://community.servicenow.com/community?id=community_question&sys_id=e02fc3e1dbdcdbc01dcaf3231f96...

https://hi.service-now.com/kb_view.do?sysparm_article=KB0714594

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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