set form target for follow up page with the forms 2.0 editor

set form target for follow up page with the forms 2.0 editor

It would be very useful for customers if one could set a form's target attribute (where the followup page opens) from the form editor. For example, we could let people choose between opening it in a new window or tab, in the same frame, or in the full window / parent page.

Many customers rely on using a Forms 2.0 form on a Marketo page inside an iframe so they can take advantage of prefill and progressive profiling (doesn't work if you embed the form code). The problem is that with Forms 2.0, there's no way to do this without the followup page opening inside the iframe. If they could choose the target from the form editor, that would resolve this and make Forms 2.0 even better.

Imagine this:
0EM50000000SGbJ.jpg

4 Comments
Anonymous
Not applicable
Agreed!  We need the ability for a Forms 2.0 form to refresh the parent URL if it is iFramed on a non-Marketo landing page.
Marketo Employee
Hey Kyle,

It's not built in, but you can use the following code snippet to navigate in the top or parent page:

<script>
MktoForms2.whenReady(function (form){
form.onSuccess(function (values, url)

 window.top.location.href = url; return false;
}); 
});
</script>
Anonymous
Not applicable
Thanks Kenny!  Works like a charm.
Community Manager
Status changed to: Already have it