Skip to main content
Nov 6, 2014 5:40 PM UTC
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
Nov 6, 2014 5:44 PM UTC

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
Nov 6, 2014 5:44 PM UTC

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
Nov 11, 2015 8:04 PM UTC

thanks! exactly what I was looking for.

Translate
Nov 6, 2014 7:44 PM UTC
This is the link to example form Val mentioned:
http://developers.marketo.com/assets/Forms2DevExamples/example1.html
Translate
Mar 3, 2017 7:55 PM UTC

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

Translate
Nov 6, 2014 8:27 PM UTC
Thanks Val!

I knew I saw it somewhere before.
Translate
Dec 9, 2014 11:09 PM UTC
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
Feb 3, 2015 3:30 PM UTC
Yeah this solution doesn't work for me either. The form lags on submit and deactivates the submission button.
Translate