|Project:||Chaos tool suite (ctools)|
I've the form defined in ctools with i.e.:
- step-1 as foo_form1()
- step-2 as foo_form2()
- step-3 as foo_form3()
On step-1 page user choose Yes or No. Depending on answer, if the answer is No - I want to skip step-2.
I've tried following solutions by now:
In foo_form2() I did:
$form_state['step'] = $form_state['next'];
I've tried as well to define foo_form1_submit() with following code:
$form_state['next'] = 'step-3';
Not much difference.
Any ideas how to achieve that?