Remove choice list options from list view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2015 11:56 AM
Can some choice list options be removed for certain roles from a list view dynamically??

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2015 12:08 PM
Hi Arpit,
There is no option to remove choice value from the list view. However as alternative you can restrict the update on list edit operation(ACL) and restrict the access.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2015 12:18 PM
This is straight from the wiki:
which will remove state '7' for everyone who is not admin
function onLoad() {
var isAdmin = g_user.hasRole('admin');
var incidentState = g_form.getValue('incident_state');
if (!isAdmin && (incidentState != 7)){
g_form.removeOption('incident_state', '7');
}
}
GlideForm (g form) - ServiceNow Wiki

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2015 12:20 PM
Hi Robert,
Will this work on list view?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2015 12:23 PM
Oops, I missed that important fact.
In those cases I would normally do as you suggested and use the ACL to not allow list edit for that field.