Help with list_edit ACL

PaulaaO
Mega Sage

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.

 

find_real_file.png

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:

find_real_file.png

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

1 ACCEPTED SOLUTION

Harshad Wagh
Tera Guru

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

 

 

View solution in original post

6 REPLIES 6

Harshad Wagh
Tera Guru

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

 

 

PaulaaO
Mega Sage

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