<?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: hidden form fields in hubspot cta in Lead Capture Tools</title>
    <link>https://community.hubspot.com/t5/Lead-Capture-Tools/hidden-form-fields-in-hubspot-cta/m-p/1036631#M11946</link>
    <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/742758"&gt;@christoph88&lt;/a&gt;&lt;/SPAN&gt;! Welcome to the Community-- happy to have you here &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I understand your goal is to pre-populate hidden fields on a pop-up form with data from outside of HubSpot using javascript. This sounds similar to how you can auto-populate form fields on a page by adding query strings to the page URL (&lt;A href="https://knowledge.hubspot.com/forms/can-i-auto-populate-form-fields-through-a-query-string" target="_blank"&gt;Knowledge Base article&lt;/A&gt;), but we have a layer of complexity assuming these fields would be populating dynamically, correct?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you describe an example use case of these values? That additional context may help us find a resolution!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One of our experts &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/141"&gt;@TomM2&lt;/a&gt;&lt;/SPAN&gt; gave some insight on&lt;A href="https://community.hubspot.com/t5/Lead-Capture-Tools/Hidden-fields-in-Pop-Up-Forms/m-p/906360#M10781" target="_blank"&gt; this similar post&lt;/A&gt;, so I recommend checking out that thread for some added value!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Sep 2024 21:59:05 GMT</pubDate>
    <dc:creator>kennedyp</dc:creator>
    <dc:date>2024-09-04T21:59:05Z</dc:date>
    <item>
      <title>hidden form fields in hubspot cta</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/hidden-form-fields-in-hubspot-cta/m-p/1036264#M11942</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi, I am trying to use hidden fields in a hubspot form which is embedded in a hubspot CTA. (an exit popup with a form). What is the best way to update these hidden values? Within forms can you add a callback on form create but as far as I see there is no possibility to do this for CTA's/popups?&lt;/SPAN&gt;&lt;SPAN&gt;I want to update the hidden values of the form using javascript since the data I need is within the dataLayer/dom outside of Hubspot.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 09:30:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/hidden-form-fields-in-hubspot-cta/m-p/1036264#M11942</guid>
      <dc:creator>christoph88</dc:creator>
      <dc:date>2024-09-04T09:30:09Z</dc:date>
    </item>
    <item>
      <title>setting hidden fields in hubspot form in cta</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/hidden-form-fields-in-hubspot-cta/m-p/1036277#M11947</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi, I am trying to use hidden fields in a hubspot form which is embedded in a hubspot CTA. (an exit popup with a form). What is the best way to update these hidden values? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Within forms can you add a callback on form create but as far as I see there is no possibility to do this for CTA's/popups?&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I want to update the hidden values of the form using javascript since the data I need is within the dataLayer/dom outside of Hubspot.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 09:47:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/hidden-form-fields-in-hubspot-cta/m-p/1036277#M11947</guid>
      <dc:creator>christoph88</dc:creator>
      <dc:date>2024-09-04T09:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: hidden form fields in hubspot cta</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/hidden-form-fields-in-hubspot-cta/m-p/1036631#M11946</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/742758"&gt;@christoph88&lt;/a&gt;&lt;/SPAN&gt;! Welcome to the Community-- happy to have you here &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I understand your goal is to pre-populate hidden fields on a pop-up form with data from outside of HubSpot using javascript. This sounds similar to how you can auto-populate form fields on a page by adding query strings to the page URL (&lt;A href="https://knowledge.hubspot.com/forms/can-i-auto-populate-form-fields-through-a-query-string" target="_blank"&gt;Knowledge Base article&lt;/A&gt;), but we have a layer of complexity assuming these fields would be populating dynamically, correct?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you describe an example use case of these values? That additional context may help us find a resolution!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One of our experts &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/141"&gt;@TomM2&lt;/a&gt;&lt;/SPAN&gt; gave some insight on&lt;A href="https://community.hubspot.com/t5/Lead-Capture-Tools/Hidden-fields-in-Pop-Up-Forms/m-p/906360#M10781" target="_blank"&gt; this similar post&lt;/A&gt;, so I recommend checking out that thread for some added value!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 21:59:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/hidden-form-fields-in-hubspot-cta/m-p/1036631#M11946</guid>
      <dc:creator>kennedyp</dc:creator>
      <dc:date>2024-09-04T21:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: hidden form fields in hubspot cta</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/hidden-form-fields-in-hubspot-cta/m-p/1036741#M11948</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/169781"&gt;@kennedyp&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I saw that thread an it's actually very similar to what I want to do.&lt;/P&gt;&lt;P&gt;We want the send the ga4 client_id within the hubspot hidden fields.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In case we don't want to send the client id we could send info like isp or other information (we are a telco firm).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All that data will be used for analysis of customers and leads.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This indeed has to be dynamically filled in. For regular forms I saw the callbacks but you cannot use the form.create function within a hubspot CTA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw the thread but wasn't a real solution there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Christoph&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 06:32:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/hidden-form-fields-in-hubspot-cta/m-p/1036741#M11948</guid>
      <dc:creator>christoph88</dc:creator>
      <dc:date>2024-09-05T06:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: setting hidden fields in hubspot form in cta</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/hidden-form-fields-in-hubspot-cta/m-p/1037433#M11950</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/742758"&gt;@christoph88&lt;/a&gt;&amp;nbsp;this isn't currently possible within CTA forms. HubSpot forms allows you to access the embed code so you can add in your own callbacks in here, they also populate with URL &lt;A href="https://knowledge.hubspot.com/forms/can-i-auto-populate-form-fields-through-a-query-string" target="_blank" rel="noopener"&gt;query strings.&lt;/A&gt;&amp;nbsp; I'm not sure if pop-up forms populate with query strings, I doubt it but I haven't tried on the new embed for pop-ups yet, it might be worth testing!&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding the callbacks and embed code however, this isn't currently possible as the pop-up embed is injected on page load through the tracking code. So there's no form embed code to edit your callback into. They also use pretty dynamic IDs from what I've seen and the pop-up forms load within an iframe, so you can't pass anything to the DOM of it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 09:19:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/hidden-form-fields-in-hubspot-cta/m-p/1037433#M11950</guid>
      <dc:creator>TomM2</dc:creator>
      <dc:date>2024-09-06T09:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: setting hidden fields in hubspot form in cta</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/hidden-form-fields-in-hubspot-cta/m-p/1037447#M11951</link>
      <description>&lt;P&gt;The query parameters work in CTAs but aren't useable in my usecase. I really find this a lacking feature. Having those hidden fields available would make the forms 100x more powerfull.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 09:54:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/hidden-form-fields-in-hubspot-cta/m-p/1037447#M11951</guid>
      <dc:creator>christoph88</dc:creator>
      <dc:date>2024-09-06T09:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: setting hidden fields in hubspot form in cta</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/hidden-form-fields-in-hubspot-cta/m-p/1037708#M11956</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/742758"&gt;@christoph88&lt;/a&gt;&amp;nbsp;I agree! The pop-up CTAs is still a very new feature, so the product team are actively trying to improve on this. I'd definitely recomend adding this as a feature request to them through the HubSpot ideas forum &lt;A href="https://ideas.hubspot.com" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 19:38:03 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/hidden-form-fields-in-hubspot-cta/m-p/1037708#M11956</guid>
      <dc:creator>TomM2</dc:creator>
      <dc:date>2024-09-06T19:38:03Z</dc:date>
    </item>
  </channel>
</rss>

