OnClick Function to Move to Next Tab

rss

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

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!

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 5 years 10 months 26 days
    #1 by Dmitry Kozlov Aug 23 ’16 at 04:21

    Hi,

    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
    Member for: 3 years
    #2 by mhurst2016 Aug 23 ’16 at 05:46

    Great, Thanks Dmitry! Worked perfectly.

Displaying 1 to 2 of 2 messages