Forums

pressing Refresh in multipage form

Fhtravel 05 Jan, 2011
Hello,

I've been using chronoforms for some time now on my company website for people to be able to Reserve a vacation, i made a multipage form for this and everything was working fine untill yesterday my colleage made a discovery, i've been searching the forums for people with simular problems which i've done with past problems but i can't seem to find anything simular.
What happens is that when people are on page_1 of my form and go to page_2 there are a couple of required fields which seem to be doing there job because if you press next it will say that it can't go to the next page untill everything is filled in, but if someone presses f5, is still goes to page_3, and when people then press submit on my 4th page, my email template seems to be 'Broken'
I have absolutely no clue about what is going wrong and why this is happening when someone presses f5, i think it might have something to with the line &task=send, that gets added to the URL when you go from page_1 to page_2
any idea's of how i can solve this problem?

Kind regards,

Frank Hendriks
GreyHead 05 Jan, 2011
Hi Frank,

Sorry, I'm no wiser about this than you are :-( Fredik might have a better idea if he's around.

The &task=send somes from the Action link on the first step. I don't think that is the problem here. And I have no idea why you should use the template on any step.

My best guess is that refresh goes to the next step because of the way that the plug-in is built. The 'next page' is saved in the User Session and when it sees a new request the Mother form simply looks up the next step and sends the page - it doesn't check if the request is from a submission or a refresh request.

I'm not certain that this is the correct explanation; nor what fix might be possible - other than disabling F5.

Bob
Fhtravel 05 Jan, 2011
Hey,

Thanks for your quick response, too bad you don't have a solution to my problem😟
What i ment about the email template is that if people skip the steps with f5 and they get to page_4 which sends the email when submit is pressed, that's where it is "broken", i call it broken, because none of the fields are appearing filled in, and all the {text_field}'s are shown in the recieved email, even the ones that where correctly filled in or automatically generated at page_1...
I'll try to disable F5 i guess, when i figure out how too :wink: any idea's?

kind regards,

Frank
Max_admin 05 Jan, 2011
Hi Frank,

So you say that page_2 values are not submitted ? You may write a small snippet to check one of the fields values in the session at the last step, if it doesn't exist then redirect to page 1.

I'm also working on a new Chronoforms version now and I hope issues like this will be solved since there will be a new approach to deal with them.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Fhtravel 05 Jan, 2011
Hi max,

No that is not what i ment,
None of the page values are being submitted when F5 is being pressed, i dont think it's actually sending an email to the customer, i can't check that though, but it does send the empty email to me..
It's a little hard to explain exactly what is going wrong,
If you want / have time, you can try to fill in the form, it's in Dutch but it's not really hard to understand,
my website is http://frieslandhollandtravel.nl/index.php?option=com_zoo&task=item&item_id=17&Itemid=12&lang=nl
This link shows an item that can be reserved, if you press "Boek nu" it will take you to my form,
Page 1 is fairly simple it only requires you to pick a date, if you press F5 here, nothing happens (which is good ), when you press: Volgende(next) it takes you to page 2 which requires "person 1" to fill in his details, when u press F5 at this page, it screws up and goes to page 3, which it shouldnt if the fields aren't filled in correctly. page 3 can be left empty, page 4 is only a couple of choices that have to be made, really straight forward.
If you don't have the time too look into my form it's oke and i'll just wait for the new version of chronoforms :wink:

Kind regards,

Frank

PS. I've disabled F5 but it only seems to work in IE not in Firefox, most of the customers will probably have IE so it's a good partial solution.
arried 28 Aug, 2011
Hi,

Is there any solution for this?
I also has similar problem with multipage
1. In page 1, when I hit F5 doesn't moved to the page 2 (next page) and I should completed the form.
2. In page 2, when I hit F5, the form goes to the page 3 or next page, even each fields are required.

I am running chronoform version 3.2.0.

thx
arried 06 Sep, 2011
Ok.. My solution is putting condition in next step, if it's empty, it will returned to previous step.

Thx
blufragola 25 Oct, 2011
Hello.
I have exactly the same problem but I don't understand how to apply your solution.😟
Could you explain it with details, please?
First, where would I put condition code(in Form HTML window?)?
Second, could you please suggest how the snippet would be?
Thank you anyway.
This topic is locked and no more replies can be posted.