<?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: Has anyone been able to integrate Chart.js with HubSpot Form Values? in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Has-anyone-been-able-to-integrate-Chart-js-with-HubSpot-Form/m-p/363413#M35779</link>
    <description>&lt;P&gt;Thanks! I used the same approach but used the&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;onFormReady&lt;/STRONG&gt; instead of &lt;STRONG&gt;onFormSubmitted&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Aug 2020 13:24:48 GMT</pubDate>
    <dc:creator>dimitreliasb</dc:creator>
    <dc:date>2020-08-20T13:24:48Z</dc:date>
    <item>
      <title>Has anyone been able to integrate Chart.js with HubSpot Form Values?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Has-anyone-been-able-to-integrate-Chart-js-with-HubSpot-Form/m-p/362529#M35687</link>
      <description>&lt;P&gt;I have a form that the user enters several values and also some claculations happening.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to show those results in the form of a chart. Has anyone been able to connect with Chart.js ? I guess my problem is how to fetch the data say on an external landing page.&lt;/P&gt;&lt;P&gt;I am using this snippet and it is changing the value as it should.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;script&amp;gt;// &amp;lt;![CDATA[
hbspt.forms.create({
        css: '',
	portalId: "My ID",
	formId: "My Form ID",
	onFormReady: function($form) {
           //$('input[name="setup_time"]').val("50").change();
    
	}
});
// ]]&amp;gt;&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What function do I need to try to get the value and send it to the Array in the Chart JS ?&lt;/P&gt;&lt;P&gt;Should something like this work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; var profitMargin = $form.find('input[name="setup_time"]').val();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for anyone taking a look at this.&lt;/P&gt;&lt;P&gt;Basilios&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 14:56:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Has-anyone-been-able-to-integrate-Chart-js-with-HubSpot-Form/m-p/362529#M35687</guid>
      <dc:creator>dimitreliasb</dc:creator>
      <dc:date>2020-08-17T14:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone been able to integrate Chart.js with HubSpot Form Values?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Has-anyone-been-able-to-integrate-Chart-js-with-HubSpot-Form/m-p/362977#M35728</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/94047"&gt;@dimitreliasb&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When looking to change a HubSpot form field, you can do something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;   hbspt.forms.create({
     portalId: 'portalID',
     formId: 'formID',
     onFormReady: function($form) {
           $form.find('input[name="setup_time"]').val("123").change();
     }
   });&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if this works!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 06:22:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Has-anyone-been-able-to-integrate-Chart-js-with-HubSpot-Form/m-p/362977#M35728</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2020-08-19T06:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone been able to integrate Chart.js with HubSpot Form Values?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Has-anyone-been-able-to-integrate-Chart-js-with-HubSpot-Form/m-p/363076#M35736</link>
      <description>&lt;P&gt;Hi, thank you for the response. This does work but I had already akomlished that part and I must have explained it wrong on my question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;onFormReady is probably not what I am looking for and I do not need ot change the value aof the field I am actually tryign to pull the value from the fields from an already submitted form that say I just submited on that page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;bd&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 12:28:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Has-anyone-been-able-to-integrate-Chart-js-with-HubSpot-Form/m-p/363076#M35736</guid>
      <dc:creator>dimitreliasb</dc:creator>
      <dc:date>2020-08-19T12:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone been able to integrate Chart.js with HubSpot Form Values?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Has-anyone-been-able-to-integrate-Chart-js-with-HubSpot-Form/m-p/363307#M35754</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/94047"&gt;@dimitreliasb&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ah thanks for the clarification!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When looking to retrieve the form field value after submission, you can do something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; hbspt.forms.create({
     portalId: 'portalId',
     formId: 'formId',
     onFormSubmitted: function($form) {
     $form.find('input[name="setup_time"]').val("kitkat2").change();
      var testvalue = $form.find('input[name="setup_time"]').val();
            console.log(testvalue);
   }});&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 20 Aug 2020 06:52:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Has-anyone-been-able-to-integrate-Chart-js-with-HubSpot-Form/m-p/363307#M35754</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2020-08-20T06:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone been able to integrate Chart.js with HubSpot Form Values?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Has-anyone-been-able-to-integrate-Chart-js-with-HubSpot-Form/m-p/363413#M35779</link>
      <description>&lt;P&gt;Thanks! I used the same approach but used the&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;onFormReady&lt;/STRONG&gt; instead of &lt;STRONG&gt;onFormSubmitted&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 13:24:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Has-anyone-been-able-to-integrate-Chart-js-with-HubSpot-Form/m-p/363413#M35779</guid>
      <dc:creator>dimitreliasb</dc:creator>
      <dc:date>2020-08-20T13:24:48Z</dc:date>
    </item>
  </channel>
</rss>

