<?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 Ajax like swap landing page content on form submission in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Ajax-like-swap-landing-page-content-on-form-submission/m-p/269984#M12239</link>
    <description>&lt;P&gt;How can I go about detecting when a form has been submitted on a landing page. This is so I can trigger change the content?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This might be replacing the submitted form or call to action with new content.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a form javascript event I can listen for?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently using a the form module.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 14 May 2019 11:26:38 GMT</pubDate>
    <dc:creator>matttunney</dc:creator>
    <dc:date>2019-05-14T11:26:38Z</dc:date>
    <item>
      <title>Ajax like swap landing page content on form submission</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Ajax-like-swap-landing-page-content-on-form-submission/m-p/269984#M12239</link>
      <description>&lt;P&gt;How can I go about detecting when a form has been submitted on a landing page. This is so I can trigger change the content?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This might be replacing the submitted form or call to action with new content.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a form javascript event I can listen for?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently using a the form module.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 11:26:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Ajax-like-swap-landing-page-content-on-form-submission/m-p/269984#M12239</guid>
      <dc:creator>matttunney</dc:creator>
      <dc:date>2019-05-14T11:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Ajax like swap landing page content on form submission</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Ajax-like-swap-landing-page-content-on-form-submission/m-p/270366#M12270</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like you need to call the onFormSubmit callback. You can view the documentation here:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/methods/forms/advanced_form_options" target="_blank"&gt;https://developers.hubspot.com/docs/methods/forms/advanced_form_options&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Reg&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 20:00:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Ajax-like-swap-landing-page-content-on-form-submission/m-p/270366#M12270</guid>
      <dc:creator>Reg</dc:creator>
      <dc:date>2019-05-15T20:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Ajax like swap landing page content on form submission</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Ajax-like-swap-landing-page-content-on-form-submission/m-p/270460#M12275</link>
      <description>&lt;P&gt;I found a solution that looks for a particular event to take place here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://integrate.hubspot.com/t/how-to-track-form-submission-events-in-javascript/1741/2" target="_blank"&gt;https://integrate.hubspot.com/t/how-to-track-form-submission-events-in-javascript/1741/2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$('.hs_cos_wrapper_type_form').on('hsvalidatedsubmit', '.hs-form', function (e) {
    //do something
});&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 May 2019 08:18:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Ajax-like-swap-landing-page-content-on-form-submission/m-p/270460#M12275</guid>
      <dc:creator>matttunney</dc:creator>
      <dc:date>2019-05-16T08:18:52Z</dc:date>
    </item>
  </channel>
</rss>

