How can I hide the State choice on RITM forms?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hello Everybody,
I need to hide the “Closed Skipped” state choice on the RITM form.
- Will hiding it at the form level affect historical records that already have this state?
- I tried a UI Policy with
g_form.removeOption('state', 7);. It hides the option, but when I open historical records, the form shows Pending while the list view still shows Closed Skipped.
Any recommendations on the right approach?
For more details please refer the attached screenshot.
Thanks,
Sattar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hi,
Add a condition to your UI policy so it only runs if the state is not already Closed Skipped, that way you're only removing the option on records in another state
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hi @sattar3
Is there any business reason to hide one state? “Closed – Skipped” is just as important as other states. It may not be needed for some catalog items or tasks, but in certain cases, using “Closed – Skipped” is a good option instead of marking them as “Closed – Complete.”
From a process perspective, it’s better to keep the OOTB state and guide users on its purpose rather than removing the skip state and creating technical debt.
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/dratulgrover [ Connect for 1-1 Session]
****************************************************************************************************************

