Hiding the reference icon on a list

jamie_girouard
Giga Expert

I want to hide the reference icon on a specific set of lists that I've created.   I don't want users to be able to click through or hover over the see the full view of the record I've created, just the fields in the list.   I know I could probably create separate ess views for each record type to handle this scenario, but I'm trying to have to avoid managing lots of different views when the only thing I want to present to my ess users is a list with a small number of fields for them to view.

Apparently there's no way to run a client script on a list field.   If that's the case, then do I have any options to be able to hide the reference icon on a list so users can't hover over for click through to the record itself?

1 ACCEPTED SOLUTION

Actually, you could use GlideDialogWindow to do this in a ui page. See Creating UI Page to display table list like a list layout


View solution in original post

10 REPLIES 10

BenPhillipsSNC
Kilo Guru

Hi Jamie,



You can try setting the system property glide.ui.reference.readonly.clickthrough to false.



Wiki here: Customizing the Reference Icon - ServiceNow Wiki



States:


Reference pop-ups and clickthroughs are hidden by default if a Client Script, UI Policy or ACL makes the field read-only. Being able to see or click through to the target record is unrelated to the reference field being writable.


To change this property, navigate to sys_properties.list in the application navigator and change the value of the UI property glide.ui.reference.readonly.clickthrough. If true, the pop-up will display on Read-Only Fields.


Have you considered making the whole list read-only?


Thanks, Ben.



I've already got glide.ui.reference.readonly.clickthrough set to false.   However, my understanding is that it doesn't apply to lists, only forms.   All of the fields in my list are read-only to the users in question yet the reference icon is still there.  



What I've ended up having to do is create specific views for the users that shouldn't have access to the full view of the record.   This way if they hover over or click through the reference icon, they only see the limited view of fields in the list.


So if you look at the ACL's on that table:


- You're saying the fields are read only


- Is there a record ACL set to read only?


- Is there a table level ACL set to read only?



Thanks


jamie_girouard
Giga Expert

Here's an example - I've got a list view I've created for the cmdb_ci table.   The cmdb_ci table has a table-level ACL that make it read only unless you're in the cmdb_edit or asset role.   The record is read-only to anyone outside of those roles.   Viewing the configuration item form with those roles does not show reference icons.   But the list does.