Sub-tab forward button

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
MP_FD
Posts: 2
Joined: Sat Apr 18, 2020

18 Apr 2020

Hello,

I have two main tabs "A" and "B" (parent tabs) and two more child-tabs under "A".

I know this OnClick property to move to next parent tab, but it doesn't work with subtabs.
var currentTab = fd.tabControl(0).tabs('option', 'active');
fd.tabControl(0).tabs('option', 'active', currentTab + 1);
But I would like to set an "OnClick" function button to move to next subtab section (from subtab A (1) to subtab A (2)... Is it possible?
Or even to set such button to move forward to a specific tab or subtab.

Any suggestion?

Thank you!
Attachments
subtabs.JPG
subtabs.JPG (36.91 KiB) Viewed 4367 times

User avatar
mnikitina
Posts: 264
Joined: Wed Jun 05, 2019

21 Apr 2020

Hello MP_FD,

fd.tabControl() holds the index of tab control on the form. The Parent Tab index is 0, the Child Tab index is 1.

To switch the tab index of the child tab control the code should look like this:

Code: Select all

var currentTab = fd.tabControl(1).tabs('option', 'active');
fd.tabControl(1).tabs('option', 'active', currentTab + 1);

MP_FD
Posts: 2
Joined: Sat Apr 18, 2020

22 Apr 2020

Thank you!

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 17 guests