microcipcip, I didn't want to devote a large web page to just say "Thank you, You were successful."
I'm happy to say, however, that I came up with a solution that appears to work fine. Bottom line is that solution scrolls to the form under 3 circumstances:
1. To present validation errors
2. To say "Thank You"
3. To tell the user they already submitted the form.
The trick was to place an anchor on the form statement, attached to the "action" parameter. That has worked for me from the beginning, but only for validation errors.
When the form was submitted and the thank you message is presented, eForm removed the form and along with it the anchor.
So, I went to eForm's "english.inc.php" file and added the anchor to the Thank You and Multiple Submit messages.
Putting it all together, here's the relevant form text, and the "english.inc.php" text:
<a name="formbegin"></a>
<p style="margin-top:0px">[+validationmessage+]</p>
<form method="post" action="[~[*id*]~]#formbegin" id="joinournetwork">
$_lang["ef_thankyou_message"] = "<a name='formbegin'></a><h3 id='jonty'>Thank You!</h3><p>Your information was successfully submitted.</p>";
$_lang["ef_multiple_submit"] = "<a name='formbegin'></a><p>This form was already submitted succesfully. There is no need to submit your information multiple times.</p>";
What helps this all to work is that after eForm removes the form it continues to uses the anchor on the subsequent messages.
This all seems too simple to work. Hope this helps someone out there. It sure would have saved me considerable Googling and trial and error.
Regards to all ... Sam
[ed. note: samg last edited this post 14 years, 4 months ago.]