I have a tabset “parentTab”, with tabs (a,b,c,d,e). In tab b, I have a button “redirect”, on button action, I’ve added the below JS snippet. I assume that should navigate the tab to tab - “d”. But nothing happens.
$ = skuid.$;
$(“#parentTab”).tabs();
var tabSetId = “#parentTab”;
$(tabSetId).tabs(“option”,“active”,3);
I’d suggest creating an event-triggered action sequence on page-A (where your tab set is located), with a custom event name, “change-tab” for example - and be sure to set the scope to “All active pages”. Add the snippet used to change the tab to this action sequence. Then in page-C (where you want to trigger the tab activation) use the “Publish Event” Action and reference your custom event name (“change-tab”).
It seems like the component Id you have provided is incorrect. Please double check the Id of your TabSet, also check for trailing/leading spaces and capitalisation.
The problem is, I’m trying to access the tab-set component from another page.
I’ve the tab-set in page-A, each tab is routed to several other pages. I want to set the active-tab from page-C, whereas we have we have the tab-set in Page-A. Is that possible? How do we access component from other page?
I’d suggest creating an event-triggered action sequence on page-A (where your tab set is located), with a custom event name, “change-tab” for example - and be sure to set the scope to “All active pages”. Add the snippet used to change the tab to this action sequence. Then in page-C (where you want to trigger the tab activation) use the “Publish Event” Action and reference your custom event name (“change-tab”).