Payment problem - cursor at middle of...

User 2897594 Photo


Registered User
322 posts

I have just set up a form with payments (dead chuffed with it, I've never done that before!), but the problem is, my form is quite long www.clwydretrieverclub.co.uk/membership.html and after the submit button is pressed, the cursor remains at the bottom of the page and the paypal button is not visible unless you scroll up. Is there anything I can do about this?
User 2147626 Photo


Ambassador
2,958 posts

Here is a little code snippet I found ages ago. See if it'll work for you ...
You'll have to play with the '800' number to find exactly where you want the page to go after the submit...

Web Form Builder - Back to Top code after Submit

Darrel Patterson wrote:
Well, after much Googling, I found my answer—Javascript. In the html page that WFB makes, find the <body> tag. Change it to
<body onSubmit="window.parent.scroll(0,0);">
After the user clicks the "Submit" button, when the page reloads, the page will be back at the very top. Since I have a bunch of text above the form window and I want the user to see the top of the form, I found that changing the second value to 800 works well —
<body onSubmit="window.parent.scroll(0,800);">
The 800 means that when the page reloads, it's as if the page was scrolled 800px down.
Where do I place this code at, do I place it in the html that WFB generates?
Alter the <body> tag of the myformname.html
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
User 187934 Photo


Senior Advisor
20,271 posts

Or this.
http://www.coffeecup.com/forums/web-for … post210811
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 2897594 Photo


Registered User
322 posts

Thank you, as ever, the perfect solution!

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.