Is it possible to select (set focus) on Tab by Client Scripts (onLoad) ?

Akkapolk
Giga Expert
1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

can you try to do this 

g_tabs2Sections.setActive(n); // n is the number of section

section number starts with 0,1,2 etc

In your case Conflicts tab has section number as 2 so use this:

g_tabs2Sections.setActive(2); 

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

can you try to do this 

g_tabs2Sections.setActive(n); // n is the number of section

section number starts with 0,1,2 etc

In your case Conflicts tab has section number as 2 so use this:

g_tabs2Sections.setActive(2); 

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Thank you very much.

This is not working in portal side.Can you please suggest a way for it as well.

@tanya 

Need to explore.

Can you post new question with all the details and tag me in that question

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader