SOLVED

Re: Embedded Thank You Page

Go to solution
Minder_Singh1
Level 1

Embedded Thank You Page

I'm using the embed code to place a form into my website. On submission I would like the "Thank You" copy to show up in place of the form instead of opening in a new window. Is this possible?
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: Embedded Thank You Page

Hey Minder - 

You should check out some of our documentation on: http://developers.marketo.com/documentation/websites/forms-2-0/

We have a set of js APIs designed for use on externally embedded forms that should help you tackle your use case.

Specifically, take a look at example 1 (which shows how to hide the form onSuccess).  Although this won't provide you every step of the way to solving the case, building on that example, you should be able to make this work!

Thanks,

Jason

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Re: Embedded Thank You Page

You could use an iframe? That's the only solution that jumps out at me. - Jeff
Minder_Singh1
Level 1

Re: Embedded Thank You Page

Thanks Jeff.

I'm trying to avoid creatiing an iframe or followup landing page if it's possible. Ideally, I'd like to adjust the javascript so when the form is submitted, it is replaced with a message like "Thank You for Submitting, a representative will contact you shortly."
Anonymous
Not applicable

Re: Embedded Thank You Page

Hey Minder - 

You should check out some of our documentation on: http://developers.marketo.com/documentation/websites/forms-2-0/

We have a set of js APIs designed for use on externally embedded forms that should help you tackle your use case.

Specifically, take a look at example 1 (which shows how to hide the form onSuccess).  Although this won't provide you every step of the way to solving the case, building on that example, you should be able to make this work!

Thanks,

Jason
Minder_Singh1
Level 1

Re: Embedded Thank You Page

Thanks Jason! We've worked out a solution where we've created our followup pages in our CMS. Next step is to hide/obscure the URL of the followup page. 

Here's the script if anyone's looking:

<script src="//app-aba.marketo.com/js/forms2/js/forms2.js">
<form id="mktoForm_xxxx">&nbsp;</form>

<script>
MktoForms2.loadForm("//app-aba.marketo.com", "xxxx", xxxxx,
function(form){
//Add an onSuccess handler
form.onSuccess(function(values, followUpUrl){
location.href = "CMS Followup URL";
return false;
});
});
</script>
Anonymous
Not applicable

Re: Embedded Thank You Page

I don't really understand code but I'm trying to double check if this works or not -- does the above meean that it is possible so that if you have a form in a lightbox, once the form is submitted, you can have a very simple thank you page that will stay within the lightbox and then you can X out so that the user will stay within the original page?