Forums

Multi-page plugin: go to child form depending on input value

marcderix 24 Oct, 2011
Hi there,

I have a question regarding the multi-page plugin. I searched the forums, but I couldn't find an answer.

I have a mother form, with 8 checkboxes. Is it possible (and how do I make this work), to go to a child form depending which checkbox is checked? So, if for instance, box 1 is checked, go to form 1, checkbox 2 go to form 2 and so on.

I hope someone has an answer🙂
GreyHead 24 Oct, 2011
Hi marcderix ,

Which version of ChronoForms are you using? You can find the version from Site Admin | Extensions | Install/Uninstall | Components in Joomla! 1.5 or Site Admin | Extensions | Extension Manager | Manage in Joomla! 1.6.

In ChronoForms v3 it's tricky and I'm not sure I'd do it that way :-(

In ChronoForms v4 it's simpler thoough multi-page forms are harder to set up :-(

Bob

Bob
marcderix 25 Oct, 2011
Hi Bob,

I'm using version 3.2

When I woke up this morning, I was thinking that it could be simpler, if I could manage to pass the input value of the 1st form, on to the second form, and display content in the 2nd form with a if statement. Or is it not that simple at all?🙂

I'm building a 5 step multiform, in which step 2 (the dimensions of certain items) is variable depending on the input of the first step.

Marc
marcderix 25 Oct, 2011
Nice, I got the passing variables bit working. So the content of the 2nd form can be changed according to the input of step 1. I did this with $posted. However, if I hit the back button to step 1, and want to go back to step 2, the forms doesn't remember the value. Is there a solution to fix that?
GreyHead 25 Oct, 2011
Hi marcderix ,

The plug-in does it by saving the data to the User Session, that's probably still the easiest way. Alternatively you could save it to the Database table on Submit (or Back) and then relaod in the new form.

Bob
marcderix 25 Oct, 2011
Hi Bob,

I turned on steps navigation, and then the back button to the previous step keeps the data intact. However, if I press the 'Back' button of the browser, all data is lost.

Is there a way to fix that, and do you have an example of how that can be done?

Marc
GreyHead 25 Oct, 2011
Hi marcderix,

Disable the back button??

Bob
This topic is locked and no more replies can be posted.