Stay on Same Page Form Submits | Community
Skip to main content
November 6, 2014
Solved

Stay on Same Page Form Submits

  • November 6, 2014
  • 5 replies
  • 8844 views
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.
Best answer by Valerie_Armstro

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.

5 replies

February 3, 2015
Yeah this solution doesn't work for me either. The form lags on submit and deactivates the submission button.
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 :/
November 6, 2014
Thanks Val!

I knew I saw it somewhere before.
November 6, 2014
This is the link to example form Val mentioned:
http://developers.marketo.com/assets/Forms2DevExamples/example1.html
March 3, 2017

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

Valerie_Armstro
Valerie_ArmstroAccepted solution
New Participant
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.

November 11, 2015

thanks! exactly what I was looking for.