Forums

Multipage back browser button result ERR_CACHE_MISS

enzo.orsi 24 Aug, 2015
Hi,
I created a multipage form, 3 pages:
PAGE 1 some fields
PAGE 2 some fields
PAGE 3 custom code with echo $form->data['field1'];

When I am in page 2, I can come back to page 1 (via browser button).
When I am in page 3, if I press back browser button, I get from Chrome ERR_CACHE_MISS

Do you know why?

I tried also to play with sessions, on page x:
- Session to data (clear session = yes, overwrite old data = yes)
- Multipage
- Html form
- Data to session (merge data = yes)
GreyHead 24 Aug, 2015
Hi enzo.orsi,

What is the resource that is failing to load? You may need to check the Web Developer tools to see a fuller message.

Bob
enzo.orsi 25 Aug, 2015
I don't see anything interesting from Chrome Web Developer tool...
The problem is only with Chrome, it is working pretty good with IE and from mobile.

This is the link, the problem is to come back from page 3 to page 2...
http://www.legalexpert.it/2015-08-22-17-48-26/2015-08-22-17-49-21/locazione/contratto-di-locazione-di-box-auto

Any idea?
GreyHead 25 Aug, 2015
1 Likes
Hi enzo.orsi,

You are using history() to go back
<a href="#" onclick="history.go(-1)" class="btn btn-default form-control A" style="" data-load-state="">Modifica</a>
Please try this with a direct link instead.
<a href=" . . . contratto-di-locazione-di-box-auto?chronoform=Contratto_di_locazione_di_box_auto&event=page3"  class="btn btn-default form-control A" style="" data-load-state="">Modifica</a>
Note: replace . . . with the rest of the URL.

Bob
enzo.orsi 25 Aug, 2015
Ok, it worked but I didn't want so static links, since I have to prepare around 200 forms...
I used something different:

<a href='<?php $_SERVER["REQUEST_URI"]; ?>' class="btn btn-default form-control A" style="" data-load-state="">Modifica</a>
enzo.orsi 25 Aug, 2015
Sorry, just to be sure, do you think that a configuration like this makes sense for each event?

- Session to data (clear session = yes, overwrite old data = yes)
- Multipage
- Html form
- Data to session (merge data = yes)
GreyHead 26 Aug, 2015
Hi enzo.orsi,

You probably don't want to do 200 forms. If there is any similarity it is usually possible to have one form that adapts to work with different pages/ products/. . .

I think that REQUEST_URI should work provided that the user has come from the previous page - but not if they have been redirected from somewhere else. For example it won't work if they have come 'back' to this form from a later one in the series.

You don't need both the Multi-page and session to data actions as they both do the same. Use one or the other. Usually you only clear the data on the first page of a form.

Bob
enzo.orsi 27 Aug, 2015
I really don't want to do 200 forms...but especially I don't want to maintain😟
I have 200 forms with:
- different layouts, different number of multipages, different number of variables
- same events for all the forms, except for a few parameters

Do you see something "nice" for managing it?
This topic is locked and no more replies can be posted.