How can remove item of choice list (from the list table, not form)

minhthe
Giga Contributor

Hello all,

Anyone know the solution(suggestion) for me about :

        Remove(disable) item "closed" of choice list "state" from the list table by specific role user.

find_real_file.png

I find some article relative the choice list, but it use for the form table.

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi,



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.


http://wiki.servicenow.com/index.php?title=Using_Access_Control_Rules


View solution in original post

7 REPLIES 7

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi,



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.


http://wiki.servicenow.com/index.php?title=Using_Access_Control_Rules


Abhinay Erra
Giga Sage

Tran,



I do not think there is a way to hide a choice value on the list. You can prevent users from editing the state field from the list via a list_edit ACL and force them to change the state from the form and hide the choice value on the form by using an onLoad client script




Thanks,


Abhinay




Please mark Helpful, Like, or Correct depending on the impact of the response


minhthe
Giga Contributor

thanks Pradeep Sharma and Abhinay,



I apply business rule, because the field choice list "state"   is contained in the sys_choice table.


Write script when meet condition,then   "oneRecordVariable.inactive = true".


The disadvantage it always load-query back to server(the first load page   & once i click to edit state).


But it work .



Hi The,



Thanks for the update.


Please mark one of response as correct and close the thread.