How we can hide the closed option from the State field dropdown in list view of case table in sow

kurella swamy
Tera Contributor

Hi everyone,
I'm working on customizing the Case table list view in the Service Operations Workspace (SOW) in ServiceNow, and I need help with the following: We want to hide the "Closed" option from the State field dropdown when users are editing cases directly from the list view. The goal is to prevent users from accidentally or prematurely setting a case to "Closed" from the list view.

kurellaswamy_0-1750406877078.png

 

Thanks in advance

 

3 REPLIES 3

Chaitanya ILCR
Kilo Patron

Hi @kurella swamy ,

 

I don't it's possible (other than disabling the choice and adding it in the form via client script's add option)

you can create a on list edit client script (ui type =all) --> looks like this doesn't work
Or a BR to prevent this or a list edit acl for this

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

GlideFather
Tera Patron

you can either set State flows - where you select what state values are available under what states or Client Script to hide/display choices...

I recommend you to try the first option, it shall not be difficult to achieve and it it no code option

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @kurella swamy 

 

This is not a feasible scenario.

What you can do is create a client script that triggers on cell edit to either restore the original value or display an error message to the user

 

https://youtu.be/TgZbATLoS04

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************
Disclaimer: These videos did not promote any ServiceNow Sales pitch or marketing. These videos are only for knowledge purposes & basic on my experience & Knowledge. LinkedIn:https://www.linkedin.com/in/atulgroverservicenowconsultant Redistribution or copying of functionality is not allowed!