Skip to main content
November 6, 2014
Solved

Stay on Same Page Form Submits

I looked for similar discussions and was unable to find anything. I figured this would be a popular ask for forms 2.0

On form submission, can I make the submitter stay on the same page, but just display a message after submit, such as thank you. Basically as if the form was submitted via AJAX.

Thanks.
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Valerie_Armstro
Valerie_ArmstroAccepted solution
Level 9
November 6, 2014

Hi Eric,

There is an example of the JavaScript you will need to use in order to achieve this on the Marketo Developers site. 

Example 1 - Hide the form after successful submission.  Does not take the visitor to the follow up page or reload the current page.

12 replies

Valerie_Armstro
Valerie_ArmstroAccepted solution
Level 9
November 6, 2014

Hi Eric,

There is an example of the JavaScript you will need to use in order to achieve this on the Marketo Developers site. 

Example 1 - Hide the form after successful submission.  Does not take the visitor to the follow up page or reload the current page.

Translate
November 11, 2015

thanks! exactly what I was looking for.

Translate
November 6, 2014
This is the link to example form Val mentioned:
http://developers.marketo.com/assets/Forms2DevExamples/example1.html
Translate
March 3, 2017

A copy, just in case that example ever dies: Marketo Forms 2.0 Example 1 - JSFiddle

Translate
November 6, 2014
Thanks Val!

I knew I saw it somewhere before.
Translate
December 9, 2014
This thing doesn't realluy work for me.. several problems.. very odd. It might be our website, but after trying it in several spots, I till find it better to sadly write all of my own code :/
Translate
February 3, 2015
Yeah this solution doesn't work for me either. The form lags on submit and deactivates the submission button.
Translate