How to default section to be viewed when ticket is first opened

gwow
Kilo Contributor

This is probably an easy answer to this question, so we just created a fourth section on our incident form which has caused the default tab to no longer be the one displayed when you first open the ticket which is now section 3. It is showing section 2 on the form first. You would then click on the 3 tab to bring up that section. Is there a way to default it to open up or view the section/tab 3 when you first open up the form?

2 REPLIES 2

benn23
ServiceNow Employee
ServiceNow Employee

You can add this to an 'onLoad' client script:

g_tabs2Sections.setActive(0);

I believe '0' is the first tab, 1 is the 2nd tab, etc...


Mark Stanger
Giga Sage

You can change the order of form sections on a form by changing the 'Position' field on the 'sys_ui_form_section' record. The easiest way to get to the form sections is by typing 'sys_ui_form_section.list' in your left nav filter.

If you've already got the order like you want it but just want to display a certain tab by default you'll need to use an onLoad client script. Details can be found here.

http://www.servicenowguru.com/scripting/client-scripts-scripting/changing-active-tab-selection-servicenowcom/