Pardot Knowledge Base

Enabling Form-Protected Content to Download Immediately

Last Updated: Apr 26, 2016 | Print this Article
When protecting a white paper or other content behind a form submission, you can elect to have the content start downloading seconds after the form's Thank You Content displays. Instead of redirecting the form or landing page directly to the hosted content (which will continue to show a form to your visitor as the content downloads), just insert the following JavaScript into the form's Thank You Code.  By inserting this JavaScript, you will be able to display the form's Thank You Content, then have the hosted content download seconds later.


  1. Navigate to Marketing > Forms.
  2. Either edit an existing form or create a new form.
  3. During Step 4 (Completion Actions) of the Form Wizard, click on the Thank You Code tab.
  4. Copy and paste the following code in the text area field:
  5. If editing an existing form, click Finish to save. If creating a new form, click Next to go to the confirmation page and then click Finish.
Just update the example url to the hosted content's url, and update 5 to the number of seconds you wish to delay before the download window appears.

Usage Notes

  • In order to use this JavaScript, you must disable any redirect locations -- both at the form level and at the landing page level
  • You may want to consider updating your Thank You Content to display a message notifying prospects that the content will download momentarily, and include a hyperlink that prospects can click to download if JavaScript is not enabled on their browser:
Thank you for completing this form! Your white paper will begin downloading in 5 seconds.  If not, click here to download this white paper.

Need more? Start a conversation with other Pardot users in our Success Community