SOLVED

PDF download after hit submit

Go to solution
Matthew_Libanio
Level 2

PDF download after hit submit

Hi there, I am loading a Marketo page in an iframe.  This creates a laughable problem on our CMS when they hit submit the form and the pdf opens within the iframe itself.  Is there a way around this?
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Cecile_Maindron
Level 10

Re: PDF download after hit submit

we are no longer using iFrames but 2.0 forms; however if I remember correctly, one of our workarounds was to create a redirect landing page with for instance a TY message and add a script on this page like <form action="info.xxxx.PDF" method="POST" id="webform_check" target="_top">

so basically whenever somebody submitted a form, it went: form > open LP > call PDF

 

View solution in original post

4 REPLIES 4
Cecile_Maindron
Level 10

Re: PDF download after hit submit

we are no longer using iFrames but 2.0 forms; however if I remember correctly, one of our workarounds was to create a redirect landing page with for instance a TY message and add a script on this page like <form action="info.xxxx.PDF" method="POST" id="webform_check" target="_top">

so basically whenever somebody submitted a form, it went: form > open LP > call PDF

 
Matthew_Libanio
Level 2

Re: PDF download after hit submit

Hi Cécile,
    we use 2.0 as well, I just meant that the Marketo Landing Page is being displayed in an <iframe> on our website.  That is the crucial element.  Normally a target=blank will pop you out of the iframe, but as it is being loaded after the submit button, I don't see a way to do this as there is no option to open a blank page.  Thoughts?

Thanks!
Cecile_Maindron
Level 10

Re: PDF download after hit submit

What I suggested is that instead of adding the PDF url as your form follow-up, you add a MKTO landing page. Your MKTO landing page can either contain one hyperlink that will open your PDF in a new page (see hyperlink specs). Or you add as suggested a script in your page that will open automatically your PDF in new page. The trigger is when your MKTO page is called, PDF opens in new page. So you have iframe > TY page > call > PDF opens
Matthew_Libanio
Level 2

Re: PDF download after hit submit

Can you provide an example of such a call?  Lets say the pdf is called "matthew.pdf" and it opens as you say.  Just curious.