<?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: add the fields submitted into the thanks message in Tips, Tricks &amp; Best Practices</title>
    <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/add-the-fields-submitted-into-the-thanks-message/m-p/838418#M4077</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/452605"&gt;@crispyGTM&lt;/a&gt;&amp;nbsp;an LP could work, the tough part with any solution is that the form values were just passed to HS and depending on the timing, the personalization token could still be blank by the time it loads. I haven't tested this in quite a while.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/315571"&gt;@CEsparta&lt;/a&gt;&amp;nbsp;the values are passed via the forms API, while you likely can't include directly in the default message after form submit, a developer should be able to render those values on the thank you page or maybe even a pop-up.&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;probably has more expertise here and can tell you what's possible and the best way forward.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2023 19:11:13 GMT</pubDate>
    <dc:creator>Jnix284</dc:creator>
    <dc:date>2023-08-22T19:11:13Z</dc:date>
    <item>
      <title>add the fields submitted into the thanks message</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/add-the-fields-submitted-into-the-thanks-message/m-p/838029#M4069</link>
      <description>&lt;P&gt;Hi, I want to show a special message after the form is sumitted. somethink to this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Thank you, John, for your message. You mentioned that you'll need [6] hours to complete the task. The cost for this would be [180] dollars. We will be in touch regarding the start dates."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where [6] is an exact value and [180] is a calculated value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can retrieve the fields submitted?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried with&amp;nbsp;onFormSubmitted:&amp;nbsp; but no result&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 07:30:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/add-the-fields-submitted-into-the-thanks-message/m-p/838029#M4069</guid>
      <dc:creator>CEsparta</dc:creator>
      <dc:date>2023-08-22T07:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: add the fields submitted into the thanks message</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/add-the-fields-submitted-into-the-thanks-message/m-p/838309#M4075</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/315571"&gt;@CEsparta&lt;/a&gt;&amp;nbsp; You may be better off trying to achieve this by re-directing to a landing page that has said tokens.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/363300"&gt;@Jnix284&lt;/a&gt;&amp;nbsp; - thoughts here?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 15:52:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/add-the-fields-submitted-into-the-thanks-message/m-p/838309#M4075</guid>
      <dc:creator>crispyGTM</dc:creator>
      <dc:date>2023-08-22T15:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: add the fields submitted into the thanks message</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/add-the-fields-submitted-into-the-thanks-message/m-p/838418#M4077</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/452605"&gt;@crispyGTM&lt;/a&gt;&amp;nbsp;an LP could work, the tough part with any solution is that the form values were just passed to HS and depending on the timing, the personalization token could still be blank by the time it loads. I haven't tested this in quite a while.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/315571"&gt;@CEsparta&lt;/a&gt;&amp;nbsp;the values are passed via the forms API, while you likely can't include directly in the default message after form submit, a developer should be able to render those values on the thank you page or maybe even a pop-up.&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;probably has more expertise here and can tell you what's possible and the best way forward.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 19:11:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/add-the-fields-submitted-into-the-thanks-message/m-p/838418#M4077</guid>
      <dc:creator>Jnix284</dc:creator>
      <dc:date>2023-08-22T19:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: add the fields submitted into the thanks message</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/add-the-fields-submitted-into-the-thanks-message/m-p/838668#M4081</link>
      <description>&lt;P&gt;I have found a solution:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;window.addEventListener('load', function () {&lt;BR /&gt;const hsform = document.querySelector("#hs-form-iframe-0").contentDocument.querySelector(".hs-form");&lt;/P&gt;
&lt;P&gt;hsform.addEventListener("submit", (event) =&amp;gt; {&lt;BR /&gt;var field1 = document.querySelector("#hs-form-iframe-0").contentDocument.querySelector("#field1-a5e92d3a-0bf4-4e29-b6d3-b12a634abd96").value;&lt;/P&gt;
&lt;P&gt;var field2 = document.querySelector("#hs-form-iframe-0").contentDocument.querySelector("#field2-a5e92d3a-0bf4-4e29-b6d3-b12a634abd96").value;&lt;/P&gt;
&lt;P&gt;var total=field1*0.1061107143+field2*117+ 11550; &lt;BR /&gt;//Add the total to the html&lt;BR /&gt;var target = document.querySelector('#formulario');&lt;BR /&gt;var div = document.createElement('div');&lt;BR /&gt;div.innerHTML = "Calculated field: "+total;&lt;BR /&gt;target.parentNode.insertBefore( div, target );&lt;BR /&gt;target.parentNode.insertBefore( div, target.nextSibling ); &lt;BR /&gt;})&lt;/P&gt;
&lt;P&gt;})&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 08:22:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/add-the-fields-submitted-into-the-thanks-message/m-p/838668#M4081</guid>
      <dc:creator>CEsparta</dc:creator>
      <dc:date>2023-08-23T08:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: add the fields submitted into the thanks message</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/add-the-fields-submitted-into-the-thanks-message/m-p/838669#M4082</link>
      <description>&lt;P&gt;I have developed this solution:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;window.addEventListener('load', function () {&lt;BR /&gt;const hsform = document.querySelector("#hs-form-iframe-0").contentDocument.querySelector(".hs-form");&lt;/P&gt;
&lt;P&gt;hsform.addEventListener("submit", (event) =&amp;gt; {&lt;BR /&gt;var field1 = document.querySelector("#hs-form-iframe-0").contentDocument.querySelector("#field1-a5e92d3a-0bf4-4e29-b6d3-b12a634abd96").value;&lt;/P&gt;
&lt;P&gt;var field2 = document.querySelector("#hs-form-iframe-0").contentDocument.querySelector("#field2-a5e92d3a-0bf4-4e29-b6d3-b12a634abd96").value;&lt;/P&gt;
&lt;P&gt;var total=field1*0.1061107143+field2*117+ 11550; &lt;BR /&gt;//Add the total to the html&lt;BR /&gt;var target = document.querySelector('#formulario');&lt;BR /&gt;var div = document.createElement('div');&lt;BR /&gt;div.innerHTML = "Calculated field: "+total;&lt;BR /&gt;target.parentNode.insertBefore( div, target );&lt;BR /&gt;target.parentNode.insertBefore( div, target.nextSibling ); &lt;BR /&gt;})&lt;/P&gt;
&lt;P&gt;})&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 08:24:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/add-the-fields-submitted-into-the-thanks-message/m-p/838669#M4082</guid>
      <dc:creator>CEsparta</dc:creator>
      <dc:date>2023-08-23T08:24:48Z</dc:date>
    </item>
  </channel>
</rss>

