I'm trying to redirect a form to download a PDF in a browser, instead of viewing it. Can you explain more on your post above, on what exactly my confirmation page URL should be to kick-off the automatic download of a PDF file?
The problem you're encountering is that Marketo-hosted assets are not configured to force a file to be saved, but rather to leave the decision up to the browser. Since they don't send the specific HTTP headers necessary to instruct the browser to bypass its built-in viewer (or a third-party viewer plugin), your leads will see very different results.
So when I use the term "download," I'm referring to either viewing or saving (in both cases, the file is downloaded to the lead's computer, the difference is what happens next).
To force a download, you'll need to load assets from your own server and send the right HTTP headers.
I do this for my content pages using the same form, different i-frames (landing pages).
I have 2 MY tokens in each program that specify
1. the asset URL
2. the asset name
Then on my thank you page, I use the same thank you copy and insert the my.asset URL token along with the my.asset name
This way, the right stuff gets served up to the right folks. Make sense?
Hi Amanda, I do exactly what you're asking about.
I have one form that I use, stored in the Design Studio. Then, in each program, i have a landing page. When the lead fills out the form, the page refreshes and a button with a link to the asset is shown.
I'm happy to walk you through how I did it if you want to PM me and we can set up time for a demo.
I am assuming you are using JS that fires on form submission and makes the form div invisible and make the div containing Asset URL visible. Am I correct?
Sometimes, but not always. Yes, you need JS and the Form API and then with an onSuccess call you can open up a new page or you can hide the form and show a button.