#1 2016-06-01 01:46:36

greet
Ion Tester
From: Belgium
Registered: 2012-05-07
Posts: 143

solved - redirect form to specific page-tab

Hi All,

I have a page with 2 form. Each displayed on a different tab.
I would like to redirect to the specific tab after sending the form.

In theme/config/forms.php is some information that tells there are 2 options: 'home' or 'referer'. Is there a possibility to add the # of the tab to the referer value?

Thanks in advance!
Greet

Last edited by greet (2016-06-08 11:05:29)

Offline

#2 2016-06-05 13:49:34

otemu
Member
Registered: 2014-03-07
Posts: 183

Re: solved - redirect form to specific page-tab

Hi,

You can update the redirect to the tab of your choice, normally you will have code like this:

$redirect = TagManager_Form::get_form_redirect();
if ($redirect !== FALSE) redirect($redirect);

Just use:

$redirect = TagManager_Form::get_form_redirect()."#myhash";
if ($redirect !== FALSE) redirect($redirect);

If both forms go to the same place, use a hidden input to determine the hash of the form and tab it should direct to.

Hope that helps

Offline

#3 2016-06-08 11:05:08

greet
Ion Tester
From: Belgium
Registered: 2012-05-07
Posts: 143

Re: solved - redirect form to specific page-tab

Works like a charm!
Thank you very much :-)

Offline

What's Ionize ?

Ionize is an Open Source Content Management System created by webdesigners for webdesigners.

Created and maintained by Partikule and Toopixel, Ionize wants to be the easiest and most powerful CMS.

Can I help ?

Because talent is nothing without involvement, we are looking for motivated coders and webdesigners to join the project team.

Resources

Website : ionizecms.com
Documentation : doc.ionizecms.com

Development : Ionize on GitHub
Translations : Ionize Translations