<?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 API - Can't get Textarea value to update in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Form-API-Can-t-get-Textarea-value-to-update/m-p/1107480#M80225</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;Thanks for testing the issue and reaching out to others for assistance. This project hinges on me being able to append the info to the form textarea. Not sure why it's not working. Is there something about Hubspot forms that would prevent the code from working?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Terry&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2025 16:33:11 GMT</pubDate>
    <dc:creator>tmcmillan99</dc:creator>
    <dc:date>2025-02-11T16:33:11Z</dc:date>
    <item>
      <title>Form API - Can't get Textarea value to update</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Form-API-Can-t-get-Textarea-value-to-update/m-p/1104904#M80159</link>
      <description>&lt;P&gt;I am struggling to get the textarea field to update using the forms api and jquery. Basically, I want to take the values from marked checkboxes and add them to the textarea. I made some great progress from a suggestion on a previous post but have hit a roadblock. This is the last piece of the puzzle. Here is my code:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;script type="text/javascript" src="//js.hsforms.net/forms/embed/v2.js" charset="utf-8"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
  hbspt.forms.create({
    portalId: "xxxxxxxx",
    formId: "xxxxxxxxxxxxxxxxxxxxxxx",
    onFormReady: function ($form) {
    // Request Training
    $('.course-checkbox').prop('checked', false).change(function() {
        let selectedValues = [];
        $('.course-checkbox:checked').each(function() {
            selectedValues.push($(this).val()); // Add the value to the array
          	console.log(selectedValues);
        });
        $('#enquiry_details-c9d69fac-d601-4364-8e3f-279879a5dfbb').val(selectedValues.join('\n')); 
    });
	
    },
  });
&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;I put the console.log in place so verify that's it's grabbing the correct values which is it. I removed the ids for the post. Not sure if I am missing something or doing something wrong. I am sure it's going to be something simple.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Terry McMillan&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 14:39:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Form-API-Can-t-get-Textarea-value-to-update/m-p/1104904#M80159</guid>
      <dc:creator>tmcmillan99</dc:creator>
      <dc:date>2025-02-06T14:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Form API - Can't get Textarea value to update</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Form-API-Can-t-get-Textarea-value-to-update/m-p/1105767#M80184</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13203"&gt;@tmcmillan99&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; This is a challenging one. I tried a few quick ideas and then asked Claude for help, but came away defeated. Maybe some of our community champion wizards have a suggestion —&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/293284"&gt;@dsmarion&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101258"&gt;@Teun&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/78983"&gt;@Indra&lt;/a&gt;&amp;nbsp;have you set up anything similar in your recent work?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for looking! — Jaycee&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 17:17:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Form-API-Can-t-get-Textarea-value-to-update/m-p/1105767#M80184</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2025-02-07T17:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Form API - Can't get Textarea value to update</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Form-API-Can-t-get-Textarea-value-to-update/m-p/1107480#M80225</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;Thanks for testing the issue and reaching out to others for assistance. This project hinges on me being able to append the info to the form textarea. Not sure why it's not working. Is there something about Hubspot forms that would prevent the code from working?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Terry&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 16:33:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Form-API-Can-t-get-Textarea-value-to-update/m-p/1107480#M80225</guid>
      <dc:creator>tmcmillan99</dc:creator>
      <dc:date>2025-02-11T16:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Form API - Can't get Textarea value to update</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Form-API-Can-t-get-Textarea-value-to-update/m-p/1110255#M80400</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt; What are my options if it looks like I am not going to receive any suggestions from the community? Is this something that I can log a support ticket for? If this functionality ends up not being possible with a Hubspot form then I will need to figure out quickly a different solution to the project. &lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 19:42:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Form-API-Can-t-get-Textarea-value-to-update/m-p/1110255#M80400</guid>
      <dc:creator>tmcmillan99</dc:creator>
      <dc:date>2025-02-17T19:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Form API - Can't get Textarea value to update</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Form-API-Can-t-get-Textarea-value-to-update/m-p/1112623#M80486</link>
      <description>&lt;P&gt;I was able to get some assistance on the Hubspot Developer Slack channel. There were two changes that I needed to make: 1. Toggle the Hubspot form to raw html&amp;nbsp; 2. Add .change() after the join action on the textarea.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;        $('#enquiry_details-6fa26ee7-f3d1-407c-8e1f-aa6a59b9f49a').val('I am interested in the following training cources: ' + selectedValues.join(',\n')).change(); &lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 21 Feb 2025 15:49:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Form-API-Can-t-get-Textarea-value-to-update/m-p/1112623#M80486</guid>
      <dc:creator>tmcmillan99</dc:creator>
      <dc:date>2025-02-21T15:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Form API - Can't get Textarea value to update</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Form-API-Can-t-get-Textarea-value-to-update/m-p/1112634#M80487</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13203"&gt;@tmcmillan99&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thank you very much for coming back and sharing your solution. I'll keep this in mind for future troubleshooting &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt; — Jaycee&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 16:12:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Form-API-Can-t-get-Textarea-value-to-update/m-p/1112634#M80487</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2025-02-21T16:12:06Z</dc:date>
    </item>
  </channel>
</rss>

