Scroll back to a set anchor after a form is submitted

Permalink
I have a form blok located at the bottom of a page (it's a very long page) and will like the page toscroll back to the form after the page gets submitted.

Any ideas?

 
malkau replied on at Permalink Reply
malkau
I did this recently in my own form...

You can add a DIV around your FORM and set the ID to the value of "qsID" (this is the same ID as the #anchor you get after form submit)

So, on submit, the form should auto jump down to where your form is.

e.g.
<div id="<?php  echo $qsID; ?>">
<form ...>
</form>
</div>



Otherwise, someone shared some javascript to do an animated scroll here:http://www.concrete5.org/community/forums/customizing_c5/form-build...

Cheers :)