Forums

Back/Edit button for multipages

cyberrock 11 Jun, 2017
Hello all,
I have just had a look at https://www.chronoengine.com/forums/posts/f2/t95332.html and have had not success....

I have 4 pages
[list]Pickup Details
Delivery Details
Confirm Details
Take payment[/list]

On the Confirm details page, I have listed all previous data from Pick up and Delivery Pages though, on the Confirm Details page, need an edit or back button(s) as an option to go back to edit either the Pickup Details or Delivery Details page.

According to the post above, it is possible. But has not worked on my occasion, maybe because I got confused with the Hidden Variable element as I have not inserted any hidden elements myself.

Regards

Ben
GreyHead 11 Jun, 2017
Hi Ben.

Which version of ChronoForms are you using?

Bob
GreyHead 12 Jun, 2017
Hi Ben,

I would use a Custom Code element add a link to the form page that you want to go to . . . /chronoform=my_form_name&event=event_name and style that as a button (I think that adding the class btn will do that).

Bob
cyberrock 12 Jun, 2017
Hi ya Bob,
Thanks for your suggestion, though that was the first option i had tried. Sending the page directly to a link does not keep the data in the fields.



Regards


Ben
GreyHead 13 Jun, 2017
Hi Ben,

It will load the data if you have the multi-page actions in each page event.

If you want the form to submit and then redirect that is possible using a submit button with the Name = 'Back' but you have to check the submit button name to set the redirection.

If this is a form that the user may use multiple times in the same session then some extra code is needed in the first page to distinguish an edit load from a 'new form' load.

Bob
cyberrock 14 Jun, 2017
HI Bob,
Sorry, I was partly mistaken. I have now noticed all pages with the exception of the first page imports the data. however on the first page (Pickup details), it doesn't... In fact, according to the debug data, no existing form data is present. Any thoughts?

Regards


Ben
GreyHead 14 Jun, 2017
Hi Ben,

I can only guess that you don't have a multi-page action in the first page event?

Bob
cyberrock 14 Jun, 2017
Yes, sorry Bob. well, i did have multipage on but on the on load, I had "reset data" set to yes.

Thanks very much for your help
GreyHead 14 Jun, 2017
Hi cyberrock,

It can be tricky handling the first page (as I said earlier), you can use an Event switcher to detect if this is a new submission or not and either run a multi-page with 'reset data' or without.

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