Hi I need to hide the Closed complete choice option from State field in list view so that user canno

Sonal Chhaya
Tera Contributor

Hi I need to hide the Closed complete choice option from State field in list view so that user cannot directly close the RITMs from list view. How to achieve that? This should be done specially in a workspace. Can someone help me with the process?

3 REPLIES 3

Najmuddin Mohd
Mega Sage

Hi @Sonal Chhaya ,

The other solution would be to create a list_edit ACL, so users can not edit from the List view and it will be read only

NajmuddinMohd_0-1737526268075.png






NajmuddinMohd_2-1737526558826.png

 

NajmuddinMohd_1-1737526536960.png

 


If the above information helps you, Kindly mark it as Helpful and Accept the solution.
Regards,
Najmuddin.

Sandeep Dolia
Tera Expert

Hi @Sonal Chhaya You can not hide the state field directly both in Native UI and the workspace.
and I agree with solution provided by @Najmuddin Mohd .

Here are the alternative solutions 
1. Use onCellEdit client script on the Requested Item table to disable changing of the state (You can also add conditions related to log in users role). But this will only disable on the list view of native UI not SOW

2. To disable row level editing in SOW you can check the Hide inline editing checkbox which is unchecked Out Of The box from Servicenow in the UX list options.

 

Please see the attached images for both solutions. onCellEdit client scriptonCellEdit client scriptUX List costomization.UX List costomization.

 

Please mark the solution Helpfuls if it helps.

Sonal Chhaya
Tera Contributor

Hi @Sandeep Dolia @Najmuddin Mohd UX List I tried its working for all the field in list view, I need it only for state field and acl I am unable to find the state field in scoped application , please find the screenshot and help me on this.

Note- Is there any way that we can hide or remove any choice option (eg-resolved) from state field in workspace list view only for scoped application?

Thankyou!