- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2024 12:44 AM
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:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2024 12:49 AM - edited 07-18-2024 12:52 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2024 01:24 AM
Hi @Rkanodia ,
Open the advance section, and in the execute it true section, write this script
g_form.setValue('active', false);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2024 01:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2024 02:00 AM
That's great 😃 @Rkanodia
You can close this thread now by marking the solution helpful and Accepting the Solution for others reference.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2024 01:45 AM
Hi @Rkanodia ,
you can follow these steps to mark change inactive when resolved
step1:
step2:
Thanks and Regards,
Chiranjeevi🇮🇳
Please mark as Correct Answer/Helpful, if applicable.
Chiranjeevi
ServiceNow Developer | | ITSM | | ServiceNow Discovery | | Event Management | | Service Mapping | | CMDB
Please mark as Correct Answer/Helpful, if applicable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2024 01:53 AM
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!
