Open an iFramed Marketo Form's Follow Up Page in the parent page

Document created by 08b21bd4b65c4441fd72920f489da6afa097beae on Dec 11, 2014Last modified by klaw on Sep 27, 2017
Version 6Show Document
  • View in full screen mode

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.

Add the following script to the src iframed page within a custom HTML block.

<script type="text/javascript" src="/js/public/jquery-latest.min.js"></script>
<script type="text/javascript">
     // set no conflict mode for jquery
   var $jQ = jQuery.noConflict();

       // all form submits will open in a new window




<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.