Form Tools
[Fixed]Empty form after error but filled back out when reloaded? - Printable Version

+- Form Tools (
+-- Forum: Form Tools (
+--- Forum: API (
+--- Thread: [Fixed]Empty form after error but filled back out when reloaded? (/showthread.php?tid=356)

[Fixed]Empty form after error but filled back out when reloaded? - sergiozambrano - Nov 4th, 2009
is a 2 forms set, which is finalized in first form since the second one is optional.

It works fine as long as it passes the validation. If it doesn't, the form reloads empty, never getting to the second form. If you reload the page, first form DOES get the info back, but throws error 302 if submitted.

So there's no way to get the second form if it's not filled out at the first attempt.

In other words: Info is lost when it should kept, and kept when should be dropped for a new submission.

The form is a copy of a previous one, with recaptcha, which had the same issue (was a single form) but it was fixed successfully.


RE: [Fixed]My bad and other issues - sergiozambrano - Nov 4th, 2009

This was actually more than one issue.

The empty fields after validation failure was fixed actually using the solution Ben gave me some time ago, but for some reason I lost the more recent copy and based these forms in that outdated one.

The fix was to replace this
PHP Code:

with this

PHP Code:
$fields array_merge($fields$_SESSION["form_tools_form"]);
    } else {
$fields array_merge($fields$_POST);

Here is the thread about that with other solutions to similar/derivated issues

The second problem is the may_update_finalized_submissions PANIC which describes the trials and errors that made impossible (for me) to create a 2 pages form that gathers all the info under the same form ID. (finalizing the first one to get an email confirmation, since 2nd form is OPTIONAL)

RE: [Fixed]Empty form after error but filled back out when reloaded? - Caleb Focken - Jun 2nd, 2021

The blog is about the fiction of the problem that has happened in the empty form of after error filled back out when reloading happen. This is a post of a junior member with the multiple type of college homework help for the set of link with the advance way of modifications.