Animated auto scroll down page after form submission? | Community
Skip to main content
June 30, 2017
Solved

Animated auto scroll down page after form submission?

  • June 30, 2017
  • 1 reply
  • 3611 views

Hey there,

I am currently building an external landing page with an embedded Marketo form. I would like to have my page scroll to the bottom after the form is submitted, and after using the "Take User to Defined URL" example in the documentation: http://developers.marketo.com/rest-api/assets/forms/examples/ , it does jump down to the bottom of the page after linking to an anchor.

My question is, can this be made into an animated scroll rather than a jump with JavaScript or JQuery? I don't really have the experience in JS to build something from scratch, and any snippets that I've found and tried using don't work because they no longer override the form's configured followUpUrl.

Any help I can get would be appreciated.

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

Like this: MktoForms2 :: Scroll after Success

This uses Dustan Kasten's CSSOM smooth scroll polyfill​.  Obtain the code from smoothscroll/smoothscroll.js at master.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
July 2, 2017

Like this: MktoForms2 :: Scroll after Success

This uses Dustan Kasten's CSSOM smooth scroll polyfill​.  Obtain the code from smoothscroll/smoothscroll.js at master.

July 3, 2017

That's fantastic! Thank you so much!