<?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: How can I pull the ID # from a URL into a hidden field on a HS form in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-pull-the-ID-from-a-URL-into-a-hidden-field-on-a-HS/m-p/1112252#M80475</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/63499"&gt;@SteveHTM&lt;/a&gt;&amp;nbsp;You mentioned the exact issue I am facing- the URL parameter has an uppercase "I" so the internal Hubspot value is not matching. Do you have any example codes I could reference for capturing the 15-digit value after "referrerId"? Or is it something like Excel where you parse "=right("field", 15)?&lt;/P&gt;</description>
    <pubDate>Fri, 21 Feb 2025 00:00:01 GMT</pubDate>
    <dc:creator>GAlvarez07</dc:creator>
    <dc:date>2025-02-21T00:00:01Z</dc:date>
    <item>
      <title>How can I pull the ID # from a URL into a hidden field on a HS form</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-pull-the-ID-from-a-URL-into-a-hidden-field-on-a-HS/m-p/974096#M73516</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am quite new to HubSpot and I need help with capturing an ID # within the URL of a HS form. Specifically, how can I pull the ID # from a URL into a hidden field on a form?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I read that I need to implement a custom script that extracts the ID # from the URL and populates the hidden field with this value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I do not know how to write a custom script to capture this ID from the URL. I would imagine, I would need to write some JS to do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To further explain my request I have an example URL below.&lt;BR /&gt;&lt;A href="https://www.columbiasouthern.edu/info-form?utm_source=MilitaryEdRep&amp;amp;utm_medium=Other&amp;amp;repcode=230&amp;amp;utm_campaign=General&amp;amp;leadsourceid=1844" target="_blank" rel="noopener noreferrer"&gt;https://www.columbiasouthern.edu/info-form?utm_source=MilitaryEdRep&amp;amp;utm_medium=Other&amp;amp;repcode=230&amp;amp;utm_campaign=General&amp;amp;leadsourceid=&lt;STRONG&gt;1844&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want/need to capture that leadsourceid # 1844 at the end of the URL into a hidden field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PMc8_0-1715281279487.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/117192iBF7B366BA8E93F58/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PMc8_0-1715281279487.png" alt="PMc8_0-1715281279487.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone assist me on how to capture this number? Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 19:01:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-pull-the-ID-from-a-URL-into-a-hidden-field-on-a-HS/m-p/974096#M73516</guid>
      <dc:creator>PMc8</dc:creator>
      <dc:date>2024-05-09T19:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pull the ID # from a URL into a hidden field on a HS form</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-pull-the-ID-from-a-URL-into-a-hidden-field-on-a-HS/m-p/974116#M73517</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/759226"&gt;@PMc8&lt;/a&gt;&amp;nbsp;- luckily this is quite a simple thing to capture.&lt;/P&gt;
&lt;P&gt;If you can make the query parameter name (as in URL?parametername=myvalue) match the internal name of the form field property, then the hidden field value on the form will be poulated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See;&amp;nbsp;&lt;A href="https://knowledge.hubspot.com/forms/can-i-auto-populate-form-fields-through-a-query-string" target="_blank"&gt;https://knowledge.hubspot.com/forms/can-i-auto-populate-form-fields-through-a-query-string&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can't make the parameter name match the internal property name, then it's also possible to do a bit of parsing on the 'last page seen' URL value to extract an arbitrary query property value (this may require some cusom code work depending on complexity)&amp;nbsp;using a workflow and store the captured value in your chosen property.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 19:32:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-pull-the-ID-from-a-URL-into-a-hidden-field-on-a-HS/m-p/974116#M73517</guid>
      <dc:creator>SteveHTM</dc:creator>
      <dc:date>2024-05-09T19:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pull the ID # from a URL into a hidden field on a HS form</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-pull-the-ID-from-a-URL-into-a-hidden-field-on-a-HS/m-p/974146#M73521</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/63499"&gt;@SteveHTM&lt;/a&gt;Thank you for your quick response! So if I follow you correctly, then I need to make a hidden field property with the same name as the URL parameter name value that I want to capture.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The query parameter name that I want to capture is &lt;A title="https://www.columbiasouthern.edu/info-form?utm_source=MilitaryEdRep&amp;amp;utm_medium=Other&amp;amp;repcode=230&amp;amp;utm_campaign=General&amp;amp;leadsourceid=1844" href="https://www.columbiasouthern.edu/info-form?utm_source=MilitaryEdRep&amp;amp;utm_medium=Other&amp;amp;repcode=230&amp;amp;utm_campaign=General&amp;amp;leadsourceid=1844" target="_blank" rel="noopener noreferrer"&gt;General&amp;amp;leadsourceid&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;If I give the hidden field property the same name &lt;A title="https://www.columbiasouthern.edu/info-form?utm_source=MilitaryEdRep&amp;amp;utm_medium=Other&amp;amp;repcode=230&amp;amp;utm_campaign=General&amp;amp;leadsourceid=1844" href="https://www.columbiasouthern.edu/info-form?utm_source=MilitaryEdRep&amp;amp;utm_medium=Other&amp;amp;repcode=230&amp;amp;utm_campaign=General&amp;amp;leadsourceid=1844" target="_blank" rel="noopener noreferrer"&gt;General&amp;amp;leadsourceid&amp;nbsp;&lt;/A&gt;then it should capture the id number?&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 20:27:46 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-pull-the-ID-from-a-URL-into-a-hidden-field-on-a-HS/m-p/974146#M73521</guid>
      <dc:creator>PMc8</dc:creator>
      <dc:date>2024-05-09T20:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pull the ID # from a URL into a hidden field on a HS form</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-pull-the-ID-from-a-URL-into-a-hidden-field-on-a-HS/m-p/974168#M73523</link>
      <description>&lt;P&gt;Yes. Well apart from not using a '&amp;amp;' character in the proposed name, I think it could be that simple. Good luck!&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 20:57:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-pull-the-ID-from-a-URL-into-a-hidden-field-on-a-HS/m-p/974168#M73523</guid>
      <dc:creator>SteveHTM</dc:creator>
      <dc:date>2024-05-09T20:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pull the ID # from a URL into a hidden field on a HS form</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-pull-the-ID-from-a-URL-into-a-hidden-field-on-a-HS/m-p/1112252#M80475</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/63499"&gt;@SteveHTM&lt;/a&gt;&amp;nbsp;You mentioned the exact issue I am facing- the URL parameter has an uppercase "I" so the internal Hubspot value is not matching. Do you have any example codes I could reference for capturing the 15-digit value after "referrerId"? Or is it something like Excel where you parse "=right("field", 15)?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 00:00:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-pull-the-ID-from-a-URL-into-a-hidden-field-on-a-HS/m-p/1112252#M80475</guid>
      <dc:creator>GAlvarez07</dc:creator>
      <dc:date>2025-02-21T00:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pull the ID # from a URL into a hidden field on a HS form</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-pull-the-ID-from-a-URL-into-a-hidden-field-on-a-HS/m-p/1112604#M80483</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/600129"&gt;@GAlvarez07&lt;/a&gt;&amp;nbsp;- fr my issues with this, I used a Custom code workflow step to be able to invoke a couple of line of Python code that translate the URL string to one that can be stored in the HubSpot property. As mentioned I used that code on the 'last page seen' Contact property after the submit action - so the action is not as immediate or as integrated as if the query string contained the correct internal property name as documented.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 15:26:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-pull-the-ID-from-a-URL-into-a-hidden-field-on-a-HS/m-p/1112604#M80483</guid>
      <dc:creator>SteveHTM</dc:creator>
      <dc:date>2025-02-21T15:26:58Z</dc:date>
    </item>
  </channel>
</rss>

