SOLVED

Re: Animated auto scroll down page after form submission?

Go to solution
Anonymous
Not applicable

Animated auto scroll down page after form submission?

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!

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Animated auto scroll down page after form submission?

2 REPLIES 2
SanfordWhiteman
Level 10 - Community Moderator

Re: Animated auto scroll down page after form submission?

Like this: MktoForms2 :: Scroll after Success

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

Anonymous
Not applicable

Re: Animated auto scroll down page after form submission?

That's fantastic! Thank you so much!