Page 1 of 1

OnClick Function to Move to Next Tab

Posted: 22 Aug 2016
by mhurst2016
Hi,

I have created a form with 8 tabs. I have included buttons at the botttom of each tab to move between tabs, primarily to 'Go to the Next Section'.

How do I add Java to each button to move to the next section, and what would that Java be?

Thanks!

Re: OnClick Function to Move to Next Tab

Posted: 23 Aug 2016
by Dmitry Kozlov
Hi,

Insert the following code into OnClick property of each button:

Code: Select all

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

Re: OnClick Function to Move to Next Tab

Posted: 23 Aug 2016
by mhurst2016
Great, Thanks Dmitry! Worked perfectly.