We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How can I hide the State choice on RITM forms?

sattar3
Tera Contributor

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

2 REPLIES 2

Kieran Anson
Kilo Patron

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

Dr Atul G- LNG
Tera Patron

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]

****************************************************************************************************************