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

Yousaf
Giga Sage

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.***

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.***

Thank you for your replies 🙂

Sure No Problem
Glad it helped.


***Mark Correct or Helpful if it helps.***