<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Form Submission Automatically Starts Download in Blog, Website &amp; Page Publishing</title>
    <link>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/Form-Submission-Automatically-Starts-Download/m-p/262132#M2328</link>
    <description>&lt;P&gt;Would have to agree with&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259"&gt;@Mike_Eastwood&lt;/a&gt;&amp;nbsp;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can't say we'd ever recommend FORCING PDF download. Especially on an increasingly mobile-centric web where doing so could turn off mobile visitors. In either case, here's a couple posts about how to make it happen. One using .js and the other using PHP.&lt;/P&gt;
&lt;P&gt;- see &lt;A href="https://ourcodeworld.com/articles/read/545/how-to-trigger-the-direct-download-of-a-pdf-with-javascript" target="_blank" rel="noopener"&gt;How to trigger the direct download of a PDF with JavaScript&lt;/A&gt;&lt;BR /&gt;- see &lt;A href="https://www.lifewire.com/using-php-to-force-download-3469180" target="_blank" rel="noopener"&gt;How to Use PHP to Force a File Download&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Dec 2019 13:52:24 GMT</pubDate>
    <dc:creator>MFrankJohnson</dc:creator>
    <dc:date>2019-12-25T13:52:24Z</dc:date>
    <item>
      <title>Form Submission Automatically Starts Download</title>
      <link>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/Form-Submission-Automatically-Starts-Download/m-p/262125#M2326</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Currently we have a setup where someone fills out a form and then is directed to a thank you page where they press a cta to download the file. I want to create a way so that when the person submits the form and the thank you page loads, the file automatically starts to download without them pressing the cta button on that page. I just want that cta button to exist there as a backup in case the file download does not automatically start.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know a way to accomplish this automatic download process? I know I have seen it on other sites that I have used.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 01:09:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/Form-Submission-Automatically-Starts-Download/m-p/262125#M2326</guid>
      <dc:creator>Kselby</dc:creator>
      <dc:date>2019-03-29T01:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Form Submission Automatically Starts Download</title>
      <link>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/Form-Submission-Automatically-Starts-Download/m-p/262130#M2327</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/21183"&gt;@Kselby&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We achieved a Download Link by using a Simple Call-To-Action (CTA) then embedding the CTA in a web page (WordPress in this case).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The good thing about this process is that you will have views/download information and you can tie it into your campaign stats.&lt;BR /&gt;&lt;BR /&gt;Here's how we do it:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;PDF&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Go to Marketing &amp;gt; Files &amp;amp; Templates &amp;gt; Files.&lt;/LI&gt;
&lt;LI&gt;Upload the PDF&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Click on the file which opens the panel on the right with the file details.&lt;/LI&gt;
&lt;LI&gt;
&lt;P class="auto-cursor-target"&gt;Copy the URL of the PDF&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;CTA&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Set up the CTA got to Marketing &amp;gt; Lead Capture &amp;gt; CTAs&lt;/LI&gt;
&lt;LI&gt;Create a CTA. (For future CTAs I find it easier to clone an existing campaign and edit the information).&lt;/LI&gt;
&lt;LI&gt;Enter the CTA Information&amp;nbsp;
&lt;OL&gt;
&lt;LI&gt;Give the CTA a sensible name&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Select a Campaign (or create a new campaign)&lt;/LI&gt;
&lt;LI&gt;Select Web Link (the link tho the PDF)&lt;/LI&gt;
&lt;LI&gt;Paste in the URL from Step 4 of the PDF process&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Click on the Design Tab and change the button text&lt;/LI&gt;
&lt;LI&gt;The CSS should be fine unless you're creating a new CTA from scratch.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;Download Page&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;To add the CTA to a page you'll need to copy the Embed Code and paste it into WordPress.&lt;/LI&gt;
&lt;LI&gt;In WordPress you will need to be in Code View, not Preview mode (you should see the raw HTML).&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;TEST, Test, test&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Run an end-to-end test to make sure it's all working.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;fill in any forms to get to the download page&lt;/LI&gt;
&lt;LI&gt;download the document&lt;/LI&gt;
&lt;LI&gt;check the filename of the downloaded document&lt;/LI&gt;
&lt;LI&gt;check the statistics in HubSpot to make sure the download was tracked.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Have fun&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 02:10:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/Form-Submission-Automatically-Starts-Download/m-p/262130#M2327</guid>
      <dc:creator>Mike_Eastwood</dc:creator>
      <dc:date>2019-03-29T02:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Form Submission Automatically Starts Download</title>
      <link>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/Form-Submission-Automatically-Starts-Download/m-p/262132#M2328</link>
      <description>&lt;P&gt;Would have to agree with&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259"&gt;@Mike_Eastwood&lt;/a&gt;&amp;nbsp;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can't say we'd ever recommend FORCING PDF download. Especially on an increasingly mobile-centric web where doing so could turn off mobile visitors. In either case, here's a couple posts about how to make it happen. One using .js and the other using PHP.&lt;/P&gt;
&lt;P&gt;- see &lt;A href="https://ourcodeworld.com/articles/read/545/how-to-trigger-the-direct-download-of-a-pdf-with-javascript" target="_blank" rel="noopener"&gt;How to trigger the direct download of a PDF with JavaScript&lt;/A&gt;&lt;BR /&gt;- see &lt;A href="https://www.lifewire.com/using-php-to-force-download-3469180" target="_blank" rel="noopener"&gt;How to Use PHP to Force a File Download&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Dec 2019 13:52:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/Form-Submission-Automatically-Starts-Download/m-p/262132#M2328</guid>
      <dc:creator>MFrankJohnson</dc:creator>
      <dc:date>2019-12-25T13:52:24Z</dc:date>
    </item>
  </channel>
</rss>

