OnClick Function to Move to Next Tab


Posted by mhurst2016 - Aug 22 ’16 at 07:12


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?


  • Dmitry Kozlov
    Dmitry Kozlov
    Member for: 8 years 9 months 7 days
    #1 by Dmitry Kozlov Aug 23 ’16 at 04:21


    Insert the following code into OnClick property of each button:

    var currentTab = fd.tabControl(0).tabs('option', 'active');
    fd.tabControl(0).tabs('option', 'active', currentTab + 1);
  • mhurst2016
    Member for: 5 years 10 months 12 days
    #2 by mhurst2016 Aug 23 ’16 at 05:46

    Great, Thanks Dmitry! Worked perfectly.

Displaying 1 to 2 of 2 messages