The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Values not being held following page navigation - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Values not being held following page navigation (/showthread.php?tid=587) |
Values not being held following page navigation - martin_undefined - Mar 21st, 2010 So, a 4 page form with validation and everything completed so that the values on each page should hold correctly if the user goes back a page etc. This works fine if I go back from page 4 to page 2 etc, but if I go all the way back to page 1, I lose all of the values on the other 3 pages. Does anyone have any idea why this might be happening? Thanks in advance. RE: Values not being held following page navigation - Ben - Mar 22nd, 2010 Interesting... so when you go back to page 1, all the fields on page 1 are still entered? Sounds almost like the sessions are being emptied back on page 1, but I don't know why that would occur. If you like, email me at ben.keen@gmail.com with the form URL; I'd kind of like to see it. If you could email me the form code as well, that'd be very helpful! (Oh, and mention this thread: I keep losing track of what goes where these days.... must be getting old). - Ben RE: Values not being held following page navigation - martin_undefined - Mar 27th, 2010 (Mar 22nd, 2010, 8:03 PM)Ben Wrote: Interesting... so when you go back to page 1, all the fields on page 1 are still entered? Sounds almost like the sessions are being emptied back on page 1, but I don't know why that would occur. Ben, Just discovered something else on this which might help you work it out. If I complete the form (to the last page but not submitted) and just use the browser forward & back buttons - all fields stay populated as expected. My 'previous page' button works okay as well because that's just some JS doing the browser page back bit. However, pressing 'next page' ie. the submit button on Page 1 seems to be the action that wipes values in page 2,3,4. Look forward to hearing from you. RE: Values not being held following page navigation - philou - Apr 18th, 2012 Hi Ben, has this been solved and if yes, how? I am using the FormBuilder Default Template set and then the included "Navigation - Simple" template. When I enter something on page 3 and then use the navigation to go back to page 2, my values are lost when I then (via the "Continue" button on the bottom) move forward again to page 3. I have looked at the code and since the links in the navigation are simple <A> tags with a href="?page=2" I don't see how the form values could possibly be saved when moving backwards among pages. Shouldn't there be a submit action and then a request for a previous page? That said, I looked at the "Continue Button" Template and was surprised that the <INPUT type="submit"> wasn't between the <form> tags, so I'm not quite shure how you are submitting the form? Many thanks for your help, p. |