When incident state changes to Resolved, user should jump in to Resolution Information tab.

Teja45
Tera Contributor

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.

find_real_file.png

 

any suggestions to achieve this requirement.

1 ACCEPTED SOLUTION

Community Alums
Not applicable

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 

View solution in original post

4 REPLIES 4

Community Alums
Not applicable

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

Hi @Sandeep Dutta,

 

I have created an On change client script as below.

find_real_file.png

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.

Community Alums
Not applicable

check the second link.

Community Alums
Not applicable

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