Hi,
i have a problem with a form inside the enfold theme
When i have a form splited in more pages and i scroll down and klick the next button, the netx page doesn´t show at the beginning.
It always starts in the middle or at the end of the second or third page.
Is it possible to make the form start ervery page at the beginning?
best regards
Andreas
Hey artbox1,
Try adding a codeblock element to the page and insert the following within it:
<script>
window.onbeforeunload = function () {
window.scrollTo(0, 0);
}
</script>
Best regards,
Jordan Shannon
Hi Jordan,
thanks for your answer. But it doesn´t help. The second page doesn´t start at the top.
Do you have any other solution?
best regards
Andreas
Hi,
Are you sure there are no additional settings which may point directly to the field? I haven’t been able to bypass it even with JS.
Best regards,
Jordan Shannon
Hi Jordan,
oh now i get a little bit confused, because that is what i got from FormMaker-Plugin support:
“Dear Andreas ,
Thanks for contacting us. Please note that actually the theme decides where the page scrolls on clicking onclick function button not the plugin. ”
Any idea?
best regards
Andreas
Hi,
Our theme has no bearing on the form as no one has put an onclick function on the button. I have you tried creating a new form page? It should be operating like this.
Best regards,
Jordan Shannon