How to make reference fields on a list view Read/Only(Not clickable)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2016 07:50 AM
We have a request to make a view we have of the Applications in our CMDB not clickable for reference fields we have in it (Business manager etc). Currently a non-Itil user can view this list (by design) and see the Business Manager. This field being a reference fields has the line under it. The non-itil user can click on it and go to that record. is there a way to lock this down so that field on the list view isn't clickable?
Thanks
Steve
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2016 08:01 AM
you can use list control to 'omit links' for specific lists.
Omit links | Select the check box if you want links for fields that reference other files in this list. Leave this button unchecked if you always want links to be generated or if you want to control the use of links with roles (Link roles field). |
Link roles | Specify the user roles required to have links generated for fields that reference other files. |
http://wiki.servicenow.com/index.php?title=Configuring_Lists#gsc.tab=0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2016 09:38 AM
mguy that helps a lot.. Using this removed all links.. and I was looking for a script to just remove some of the links. I know I can add the Omit Links condition but just having trouble coming up with the correct script.
Thanks
Steve

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2018 05:00 PM
Not sure if this helps but Brad Tilton had a similar answer to this here which helped me: https://community.servicenow.com/community?id=community_question&sys_id=a62347e1dbd8dbc01dcaf3231f9...
Basically in the list layout, instead of referencing the record in the column ie cmdb_ci.business_manager instead reference a FIELD on the record ie cmdb_ci.business_manager.name. That will make that column no longer a link to the reference.
Hope that helps.