Forums

Redirection to tab

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
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.