Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

Community Alums
Not applicable

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

Community Alums
Not applicable

Hi @Rkanodia ,

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

g_form.setValue('active', false);

Hi @Community Alums 

That solves!!

Thankyou very much

Community Alums
Not applicable

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!