set form target for follow up page with the forms 2.0 editor | Community
Skip to main content
August 8, 2014
Duplicate

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

  • August 8, 2014
  • 4 replies
  • 2339 views

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:

4 replies

New Participant
February 7, 2020
No text available
August 11, 2014
Thanks Kenny!  Works like a charm.
Kenny_Elkington
New Participant
August 8, 2014
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>
August 8, 2014
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.