
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2022 10:58 AM
Hi Community,
I would appreciate some help with a list_edit ACL.
On project_action table we need to restrict some choices from state field (these are custom choices created for TASK table which are being used for other processes). I managed to create an onLoad Client Script which applies to form, however I would like to hide those choices from the list view as well.
I understand that a list_edit ACL would be the right solution to meet this requirement, however I am stuck at the script part; I had a few attempts, but not sure what would go to make it work:
Currently I restricted it to the point that State is not editable in list view at all, but ideally I would like for users to be able and update it, without seeing 'Completed' and 'Cancelled' as choices.
Thank you in advance.
Paula
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2022 11:17 AM
Hello Paula,
There are no ways to remove the choices from list view, hence its practiced to make the field read only on list view which I believe you are already achieving.
If you still want to go ahead with this then there is a hack which is explained in this thread.
https://community.servicenow.com/community?id=community_question&sys_id=d2be36a5db58dbc01dcaf3231f9619ac#:~:text=There%20is%20no%20option%20to,ACL)%20and%20restrict%20the%20access.
Thanks
Harshad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2022 11:17 AM
Hello Paula,
There are no ways to remove the choices from list view, hence its practiced to make the field read only on list view which I believe you are already achieving.
If you still want to go ahead with this then there is a hack which is explained in this thread.
https://community.servicenow.com/community?id=community_question&sys_id=d2be36a5db58dbc01dcaf3231f9619ac#:~:text=There%20is%20no%20option%20to,ACL)%20and%20restrict%20the%20access.
Thanks
Harshad

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2022 04:24 AM
Thank you both for your replies - I will go ahead and use the list_edit ACL to restrict editing State field entirely, except for the admin. Seems the most straightforward solution