Set a new Focus on the different tabs of the incident according its state

Axel5
Kilo Expert

Hello,

I can't set a new Focus on the different tabs of the incident page (ex : When the status is resolved the Resolution Information tab is displayed)

I found the script that could apply it but impossible to make it work with a script client.. I don't know what I'm doing wrong.

https://servicenowguru.com/scripting/client-scripts-scripting/changing-active-tab-selection-servicen...

Someone would know how to do this and guide me?

 

Thank you !

1 ACCEPTED SOLUTION

Axel5
Kilo Expert

Super efficient !

 

Here the script at the end.

 

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
    if(newValue == 6) {
        g_tabs2Sections.setActive(2); //Resolution Information tab
    }    
}

 

Thanks a lot for your help !

View solution in original post

5 REPLIES 5

Axel5
Kilo Expert

Super efficient !

 

Here the script at the end.

 

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
    if(newValue == 6) {
        g_tabs2Sections.setActive(2); //Resolution Information tab
    }    
}

 

Thanks a lot for your help !