<?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: How do I make a pdf open in a new tab instead of inside of the frame? in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/How-do-I-make-a-pdf-open-in-a-new-tab-instead-of-inside-of-the/m-p/287717#M26628</link>
    <description>&lt;P&gt;The only reason I was using iframe was because the previous code was written that way. This worked great, thank you!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Aug 2019 16:07:49 GMT</pubDate>
    <dc:creator>dkapo</dc:creator>
    <dc:date>2019-08-23T16:07:49Z</dc:date>
    <item>
      <title>How do I make a pdf open in a new tab instead of inside of the frame?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-do-I-make-a-pdf-open-in-a-new-tab-instead-of-inside-of-the/m-p/287473#M26593</link>
      <description>&lt;P&gt;I want the user to receive a pdf after they fill out a form, but my issue is that the pdf opens inside of the iframe rather than taking up the entire screen or opening in a new tab.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://masspaysolutions.com/hr_risks/" target="_blank"&gt;https://masspaysolutions.com/hr_risks/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you fill out the form you will notice the pdf remains inside. How do I get it to open in a new tab?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 16:03:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-do-I-make-a-pdf-open-in-a-new-tab-instead-of-inside-of-the/m-p/287473#M26593</guid>
      <dc:creator>dkapo</dc:creator>
      <dc:date>2019-08-22T16:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a pdf open in a new tab instead of inside of the frame?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-do-I-make-a-pdf-open-in-a-new-tab-instead-of-inside-of-the/m-p/287565#M26604</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/102121"&gt;@dkapo&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you're iframing in a page that has the form embed code on it. So on your page here: &lt;A href="https://masspaysolutions.com/hr_risks/" target="_blank"&gt;https://masspaysolutions.com/hr_risks/&lt;/A&gt;, rather than adding the form's embed code itself, you're iframing in &lt;A href="https://www.masspaysolutions.com/hubspot-hr-risks-form" target="_blank"&gt;https://www.masspaysolutions.com/hubspot-hr-risks-form&lt;/A&gt;, which has the embed code. Is there a reason you're doing it this way? Because if you submit the form on &lt;A href="https://www.masspaysolutions.com/hubspot-hr-risks-form" target="_blank"&gt;https://www.masspaysolutions.com/hubspot-hr-risks-form&lt;/A&gt;, it redirects the top-level page (and not just the page inside the iframe) to the redirect URL, which in this case is the pdf file. So I think if you just add the form embed code to your page, instead of iframing in a different page that has the form, you'll redirect the top-level page to the pdf URL instead of just within the iframe.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for why the iframe inside the iframe is redirecting only within the iframe, I'm not really sure. We can look into that (or maybe someone else here knows off-hand). But I just wanted to double check that you're doing that by design.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 20:40:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-do-I-make-a-pdf-open-in-a-new-tab-instead-of-inside-of-the/m-p/287565#M26604</guid>
      <dc:creator>lscanlan</dc:creator>
      <dc:date>2019-08-22T20:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a pdf open in a new tab instead of inside of the frame?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-do-I-make-a-pdf-open-in-a-new-tab-instead-of-inside-of-the/m-p/287717#M26628</link>
      <description>&lt;P&gt;The only reason I was using iframe was because the previous code was written that way. This worked great, thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 16:07:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-do-I-make-a-pdf-open-in-a-new-tab-instead-of-inside-of-the/m-p/287717#M26628</guid>
      <dc:creator>dkapo</dc:creator>
      <dc:date>2019-08-23T16:07:49Z</dc:date>
    </item>
  </channel>
</rss>

