Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

Prateek kumar
Mega 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.