- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2022 03:50 AM
Hi All,
I have a requirement as follows.
Whenever user changes the incident state to "Resolved" Then user should jump in to Resolution Information tab. But, it is by deafult in the Notes tab.
any suggestions to achieve this requirement.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2022 07:05 AM
Hi Teja,
Please write on change client script. where field name = state
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
if (g_form.getValue('state') == '6') { // 6 = resolved
var gr = g_tabs2Sections.setActive(2); // where 2 is n-1 number of the tab. In my case resolution information tab is present at 3rd position.
}
}
Let me know if it works for you. Thank You!
Regards,
Ganesh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2022 04:00 AM
Hi Teja,
Here is your solution:
https://community.servicenow.com/community?id=community_question&sys_id=60558d07db8f570854250b55ca96194c
also, https://community.servicenow.com/community?id=community_question&sys_id=854c8b65db9cdbc01dcaf3231f96190b
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2022 05:09 AM
Hi
I have created an On change client script as below.
I have an OOB UI policy that makes the Resolution notes and Resolution codes mandatory whenever the state changes to Resolved/closed.
But the requirement is user tab should move from the Notes tab to the Resolution tab. That too the requirement is on change of the state to Resolved.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2022 05:27 AM
check the second link.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2022 07:05 AM
Hi Teja,
Please write on change client script. where field name = state
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
if (g_form.getValue('state') == '6') { // 6 = resolved
var gr = g_tabs2Sections.setActive(2); // where 2 is n-1 number of the tab. In my case resolution information tab is present at 3rd position.
}
}
Let me know if it works for you. Thank You!
Regards,
Ganesh