
- 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:14 AM
Hi Paula,
I am not sure if it is possible using ACL. list_edit ACL will restrict changing that particular field.
for removing options or restricting selection of some choices you can try client script.
Please refer to this link and check Goran's Answer to get an idea.
Restrict selections in a dropdown choice field based on role
Mark Correct or Helpful if it helps.
***Mark Correct or Helpful if it helps.***

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2022 11:28 AM
Also check these threads kind of same question had long debate.
Solved-change state edit in list form
how to restrict users who has admin and change manager role from changing state field?
***Mark Correct or Helpful if it helps.***

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2022 04:23 AM
Thank you for your replies 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2022 04:29 AM
Sure No Problem
Glad it helped.
***Mark Correct or Helpful if it helps.***