How we can hide the closed option from the State field dropdown in list view of case table in sow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2025 01:08 AM
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.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2025 01:12 AM - edited 06-20-2025 01:26 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2025 01:36 AM
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! */
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2025 01:42 AM
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
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]
****************************************************************************************************************