How to default section to be viewed when ticket is first opened
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2010 12:26 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2010 07:10 PM
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 as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2010 07:12 PM
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/