Is it possible to open a form on a specific tab?
For example:
Lesson 01 - has been filled in.
Lesson 02 - has been filled in.
Lesson 03 - has NOT been filled in.
Lesson 04 - has NOT been filled in.
Could I get the form to automatically open in Tab "Lesson 03"?
Is it also possible to get the form to automatically open in Tab "Lesson 02"?
For example:
Lesson 01 - has been filled in.
Lesson 02 - has been filled in.
Lesson 03 - has NOT been filled in.
Lesson 04 - has NOT been filled in.
Could I get the form to automatically open in Tab "Lesson 03"?
Is it also possible to get the form to automatically open in Tab "Lesson 02"?
Hi U Can Drive,
This appears to work OK
The active_tab variable in the first line is the id of the tab Container you want active - you will need to set this dynamically from your form data.
Bob
This appears to work OK
var active_tab = 'chronoform-container-3';
jQuery(document).ready(function(jQ) {
// unselect all tabs
jQ('#chronoform-container-1 li').removeClass('active');
jQ('#chronoform-container-1 .tab-pane').removeClass('active');
jQ('#chronoform-container-1 .tab-pane').hide();
// re-select one of them
jQ('#'+active_tab).show();
jQ('#'+active_tab).addClass('active');
jQ('#chronoform-container-1 a[href$='+active_tab+']').parent().addClass('active')
});
The various chronoform-container strings are the ids of the Container Tabs area element and the Container tabs inside it. Change them to match your tab setup.
The active_tab variable in the first line is the id of the tab Container you want active - you will need to set this dynamically from your form data.
Bob
This topic is locked and no more replies can be posted.