How to disable/hide preview (i) icon on a reference field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2019 07:30 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2019 07:40 AM
If the field is read-only, without readonly_clickthrough=true, it won't show the reference icon.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2019 07:42 AM
Is that through attribute or through code?
Also is there a way to use it inside a condition?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2019 07:44 AM
Please try with onload client script to check if user has required roles to hide the hover icon, please refer the sample code and link for more info:
function onLoad() {
//Type appropriate comment here, and begin script below
if(g_user.hasRoles('itil'))
$('view.incident.caller_id').hide();
}
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2019 08:00 AM
Let's say if it's for RITM then if would be like this?
$('view.sc_req_item.request').hide();