Forums

Multi-page form losing first page data

richarddhill 10 Sep, 2018
Hi,

After a long period of working fine, my multi-page form has suddenly started to submit the last page only, even though there are compulsory fields on the first two pages which ought to mean you cannot submit the form without completing them.

I have looked at some posts which describe similar problems, but cant see how this can happen and how I can prevent it happening.

I need the form to submit all three pages as without the email address, there is no way of replying to handle the application.

Is there any guide to explain how to set up the form so this cannot happen, or which shows how to save each part of the form before it moves on to the next, and, if it does, then submits all three pages as one item with the same ID?

Thanks - I feel rather defeated by this.


Richard
healyhatman 10 Sep, 2018
A multipage action will save to session, you can then use {session:multipage} as the data source for your validation actions.
richarddhill 10 Sep, 2018
Hi healyhatman

thanks for this, please can you advise where I need to add this - the form is a 3 page form and I assume it needs to add as each "next button" is clicked?

If there is a guide anywhere I can read, can you point me to it?

Again, thanks for your help

Richard
healyhatman 10 Sep, 2018
Yes each time you're submitting data you need a multi page action (if you want it saved to session). The multi page demo form is as close as you will get to a guide.
richarddhill 18 Sep, 2018
Hi again,

I am trying to put this into context now I have gone through all the form applications:

1. This is a multi-part form
2. I know it works successfully if filled in correctly as there are plenty of examples of it being created correctly
3. It has "required fields" so nothing can be bypassed

I am pretty sure that this is the result of people pressing the "submit" button more than once impatiently.

Is there a way to clear the form content after saving the initial attempt, so that even if a user presses submit more than once, nothing will happen, or of displaying an error message to show they have pressed submit more than once?

Many thanks

Richard
healyhatman 18 Sep, 2018
The multi page action has a button to clear session.

And if you're using a validate data action, be aware of a user goes back the data will not be in {data:} anymore but in {session: multipage}
This topic is locked and no more replies can be posted.