Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Make Resolved state inactive

Rkanodia
Tera Contributor

How can I make "Resolved" state , an inactive type of state ?

In other words, if the state of the case changes to "Resolved", the active field of the case should be false. Unlike what is presented in screenshot:

Rkanodia_0-1721288657968.png

 

 

1 ACCEPTED SOLUTION

HrishabhKumar
Kilo Sage

Hi @Rkanodia ,

You can write a UI Policy for this.

Steps:

1) Create a UI Policy with condition 'state' is resolved.

2) Add UI Policy Action in the Policy : Active = false

That will fulfill your requirement. 

 

Thanks.

Hope it helps.

If my response turns useful, you can mark it helpful and accept solution.

View solution in original post

9 REPLIES 9

Hi @Rkanodia ,

Open the advance section, and in the execute it true section, write this script 

g_form.setValue('active', false);

Hi @HrishabhKumar 

That solves!!

Thankyou very much

That's great 😃 @Rkanodia 

You can close this thread now by marking the solution helpful and Accepting the Solution for others reference.

 

Thanks.

 

ChiranjeeviR
Kilo Sage

Hi @Rkanodia ,

you can follow these steps to mark change inactive when resolved

step1: 

ChiranjeeviR_0-1721291896499.png

step2: 

ChiranjeeviR_1-1721291938320.png

 

Thanks and Regards,

Chiranjeevi🇮🇳

Please mark as Correct Answer/Helpful, if applicable.

Thanks & Regards,
Chiranjeevi
ServiceNow Developer | | ITSM | | ServiceNow Discovery | | Event Management | | Service Mapping | | CMDB

Please mark as Correct Answer/Helpful, if applicable.

Trupti94
Kilo Sage
Kilo Sage

Hi @Rkanodia ,

 

you can write on change client script- mention field -"State"

in script part check if state== 'Resolved'

g_form.setValue('active' false);

this will work for your requirement. Thanks!