Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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

Akkapolk
Giga Expert
1 ACCEPTED SOLUTION

Ankur Bawiskar
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  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

8 REPLIES 8

Prateek kumar
Giga Sage

Take a look at this:

https://community.servicenow.com/community?id=community_question&sys_id=72ce8b61dbdcdbc01dcaf3231f96...


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

Thank you very much.

Thank you very much.