Skip to main content
February 4, 2016
Solved

How to hide a form after submit on a Marketo page

Hi all,

I am creating an "Unsubscribe Reasons" form on my "Unsubscribe Thank You" page.  If (and when) someone submits that form, I'd like to hide it, rather than taking them to yet another thank you page. 

I'm sure someone has created a straightforward script to do this that I can put in custom HTML on the page. If so, can you share?

Thanks in advance

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Justin_Cooperm2
Justin_Cooperm2Accepted solution
Level 10
February 4, 2016

6 replies

SanfordWhiteman
Level 10
February 4, 2016

Asked and answered many times... did you search?

Translate
February 4, 2016

I did search, using multiple different search terms - but was unable to find what I needed

Translate
Justin_Cooperm2
Justin_Cooperm2Accepted solution
Level 10
February 4, 2016

Look at example 1:

Forms 2.0 » Marketo Developers

Translate
February 4, 2016

Thank you - it seems this example is for a Marketo form embedded on non-Marketo page - does it also work on a Marketo page?

Translate
Kenny_Elkington
Adobe Employee
Adobe Employee
February 4, 2016

yes, but you'll want to use whenReady or getForm instead of the loadForm method.

Translate
Justin_Cooperm2
Level 10
February 4, 2016

Yes, it will.

Translate