Satyanarayana Murthy P (Murthy.1303)

Murthy.1303 Member since 2015 12 posts
Posted: August 30, 2018
Last activity: September 11, 2018
Posted: 30 Aug 2018 20:24 EDT
Last activity: 11 Sep 2018 2:59 EDT

Tab switch on click

PFA: section, skin configuration and UI appearance

I have a layout group with style set to Tab in skin. Hence the final appearance of the layout group is Tab.

On click of a button, I need to switch to a particular tab.


Scenario: We have 3 tabs, on click of a button in 2nd tab, we need to switch to 1st tab.

We were using below script. It was working fine when we only had two tabs. Now we have added a new tab, and this script switches to 3rd tab always, requirement is to switch to 1st tab.

function SwitchTab()
$('.layout-group-vsportaltab[role="tablist"] > .layout:not(.active) .header h3').click();

Would appreciate any help I can get.

Note: pega.desktop.activateDocument script will only work if we use tabbed layout, it is not working when screen layout with tab appearance has been used.

***Edited by Moderator Marissa to update platform capability tags****

User Experience
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.