Don't jump to top of page after form...

User 187934 Photo


Senior Advisor
20,193 posts

Can I see your form?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2377814 Photo


Registered User
45 posts

it's not yet published unfortunately :( still working on it and the site it belongs on
User 187934 Photo


Senior Advisor
20,193 posts

How are you testing it?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2377814 Photo


Registered User
45 posts

Thank You Eric,

I've gotten it working. I needed to delete the original files off the server first. Just exporting again wasnt working, it can't have been overwriting it correctly.

User 187934 Photo


Senior Advisor
20,193 posts

So the last solution worked?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2377814 Photo


Registered User
45 posts

Yes, the last solution on its own worked with the first code removed.

It loads a little low, in that the 'please check your order' message is already part way off the screen and it just shows the bottom half and the submit button, but that's much better than reloading right to the very top of the page and scrolling past the entire form.

What Im trying to avoid is customers not fully completing the order process because they've not seen the second stage of the form and leading to complaints and this felt like it could have been very likely with the page reloading to the very top.
User 187934 Photo


Senior Advisor
20,193 posts

You can customize this a little by adding in your own custom div with a unique ID. Then adjust the code to scroll to that div.
You can then move the div around in the confirmation and find the sweet spot that scrolls correctly.
$(window).scrollTo('#customid');

<div id="customid"></div>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2377814 Photo


Registered User
45 posts

Ah Brill Eric, Thank You ;)
User 2377814 Photo


Registered User
45 posts

I didnt think of that :rolleyes:
User 187934 Photo


Senior Advisor
20,193 posts

Your welcome. Thats what the forum is all about. Great place to bounce ideas off other users because everyone looks at things different. The world would be pretty boring if they didn't.:)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.