Redirection to tab

How to open a ChronoForms multi-tab form on a specific tab.

Overview

The form always opens on the first tab by default, requiring a method to start on a different tab.
Add a URL parameter to the form link and use PHP in the form template to check this parameter and set the corresponding tab as active.

Answered
Ga Gatsman 25 Sep, 2014
I got a form with 3 tabs.

Main - Data - Files

Is there a way to open the form with the 2nd (Data) or 3rd (Files) tab open?

Thank you
- John
ca calculus00 25 Sep, 2014
Ga Gatsman 25 Sep, 2014
Answer
1 Likes
Got it

Add in your redirection a:
?tab=*container number here


Add in your form:
$tab = JRequest::getVar('tab', false, 'get');


and an if like this where needed:
<?php if ($tab =="*container number here") {echo "class=\"active\"";}?>
This topic is locked and no more replies can be posted.