depending after submit action

Please ask questions, report bugs and share your ideas about SmartFormer Gold for Joomla in this forum

depending after submit action

Postby thami » Fri Apr 22, 2016 11:18 am

Hello,

I have a form with several checkboxes.
Now I want to jump to different pages after submiting the form depending on wich checkbox is checked.
Is there a command which I can put before $form->doAfterSubmitAction(); to change the page number.
Thank's a lot.

Thami
thami
 
Posts: 2
Joined: Fri Apr 22, 2016 10:03 am

Re: depending after submit action

Postby IToris team » Fri Apr 22, 2016 4:11 pm

Hi Thami,

AFTER $form->doAfterSubmitAction();
ADD:
if (@$form->data["checkbox_name"]) $form->page = 3; //3 for 4th page, pages start with 0

Best regards,
ITORIS team
IToris team
Site Admin
 
Posts: 1686
Joined: Mon Jan 19, 2009 12:33 pm

Re: depending after submit action

Postby thami » Sun Apr 24, 2016 11:30 pm

Thanks a lot.

Thami
thami
 
Posts: 2
Joined: Fri Apr 22, 2016 10:03 am


Return to SmartFormer Gold for Joomla

Who is online

Users browsing this forum: No registered users and 6 guests

cron