Tab onclick?
Posted by holtonba - May 5 ’14 at 04:33
Is there a way to run some javascript when a tab is clicked? We have a bunch of tabs and would like to know which tab is clicked so that an HTML element can be set dynamically.
-
Dmitry KozlovAdminMember for: 10 years 11 days
Sure, put the following code into JS-editor of Forms Designer:
$('#fd_tabcontrol-0').on('tabsactivate', function(event, ui) { alert('New tab: ' + ui.newTab.text()); alert('Previous tab:' + ui.oldTab.text()) });
Displaying 1 to 1 of 1 messages