OnClick Function to Move to Next Tab

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
mhurst2016
Posts: 4
Joined: Sun Aug 21, 2016

22 Aug 2016

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!

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

23 Aug 2016

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);

mhurst2016
Posts: 4
Joined: Sun Aug 21, 2016

23 Aug 2016

Great, Thanks Dmitry! Worked perfectly.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests