I have a large multipage form on my site which is positioned in the middle of the page. After every page submission the page reloads which means the user has to scroll back down to proceed with the form.
I've been trying to add an anchor into the paging_url attribute so that it automatically focuses on the form after the page reloads but it only appears to be working on the first page. Once I navigate past the first page the anchor is stripped from the URL on all subsequent pages.
paging_url="/{segment_1}/{segment_2}/%page%#screening-form"
Is there a way to get this to work using an anchor? Failing that ajax could be an option and instead of loading a new page it simply pulls in the next question into the page without the browser reloading?
I currently have a less than ideal solution using javascript, the problem being there is a brief moment where the form isn't in view on page load and the jump down to it is noticeable.
function moveWindow () {
window.location.hash="screening-form";
}