Help: How to remove reference icon on specific fields of catalog item?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2020 03:32 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2020 05:29 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2020 11:38 PM
Hi Ankur,
I tried, but it didnt work.
Obtained the Id as below:
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2020 12:12 AM
Hi Snehal,
you want to make it onLoad or onChange?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2020 12:58 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2020 04:28 AM
Hi Snehal,
please check below link for portal related
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader