I have a contactform in the bottom of my page, and is has some mandatory input fields.
The problem is that when I submit the form, it jumps to the top of the page, meaning I have to scroll down to the form, to get the error messages that tells the fields are mandatory.
Can anyone please tell me, how can I make it NOT scroll to top on submit?
I have had to deal with this issue a couple of times. I don't think there is a way to stop the jumping due to the way it submits the data. So what I do is usually when the page loads I get it to scroll down tot he closest error field so that the user doesn't have to scroll. Or I do all the validation and then submit the form.
Contour jumps to top on submit
I have a contactform in the bottom of my page, and is has some mandatory input fields.
The problem is that when I submit the form, it jumps to the top of the page, meaning I have to scroll down to the form, to get the error messages that tells the fields are mandatory.
Can anyone please tell me, how can I make it NOT scroll to top on submit?
Hi Inmedia,
I have had to deal with this issue a couple of times. I don't think there is a way to stop the jumping due to the way it submits the data. So what I do is usually when the page loads I get it to scroll down tot he closest error field so that the user doesn't have to scroll. Or I do all the validation and then submit the form.
Nathan
is working on a reply...