Open an iFramed Marketo Form’s Follow Up Page in the Parent Page

In some cases, you may want an iframed Marketo form to open in the parent page.


Note: Please ensure that you have access to an experienced JavaScript developer.

Marketo Technical Support is not set up to assist with troubleshooting JavaScript

<script >

MktoForms2.whenReady(function (form) {

    var form = MktoForms2.getForm(FORM_ID_HERE);

    form.onSuccess(function (values, followUpUrl)

    { = followUpUrl; return false;




To figure out what the form id is, the easiest way is to look at the embed code. It is the 4 digit number on the second line.

Labels (2)