This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
autoscroll to top of page after form submit
Started 14 years ago by weiliangpeng | 5 posts |
-
Hello everyone,
First up, i have to say what a great work these guys have done on Machforms, really well worth the money spent.
Anyway, I have 2 very lengthy forms and i'd like to know if there's any way i can auto scroll back to the top after submission. What's happening now is that the page does not get scrolled up to the top so after submitting, the user is faced with a blank screen which may seem confusing.
Big thanks in advance for any help.
Cheers.
Posted 14 years ago # -
Just to add on to this.. when there is an error on the form.. for instance, a user keys in an invalid email. The page does not auto focus on the erroneous field. Does anyone else have the same issue as i do? Thanks very much in advance!
Posted 14 years ago # -
Hi there,
If possible, I suggest to use the Advanced Form Code (php code) to embed your form.
This would avoid the auto scroll issue.If that's not possible, you might want to try implement this javascript:
http://www.appnitro.com/forums/topic/auto-expandadjustable-iframe?replies=50MachForm Founder
Posted 14 years ago # -
Hey yuniar, thanks very much for the advice.. I tried the php method but when the error message came out, it blocked off the erroneous fields such that the user is unable to correct it. Is there any way to fix this?
I figured the best way would be to use an external success page.. but even then, the page does not auto focus to the error, instead it just moves half an inch up and the user has to manually scroll back to check which fields are in error.
Posted 14 years ago # -
if it helps, you can check out http://effective.sg/unioncorp-html/contact.html
This is the error where the error message blocks out the field. I'm using the php embed version on this page.
Posted 14 years ago #
Reply
You must log in to post.
