<?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 Non hubspot forms - Rename issue in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Non-hubspot-forms-Rename-issue/m-p/1103538#M80082</link>
    <description>&lt;P class=""&gt;We have a non-HubSpot form where.Initially, form submissions were collected under a name created from Tailwind CSS classes (e.g., "w-full, grid").We renamed the form to be more meaningful (e.g., "contactForm.Now new submissions are appearing under "contactForm234234341" (with random numbers).We need all submissions - both old and new - to appear under one meaningful form name&lt;/P&gt;&lt;P class=""&gt;Need solution to consolidate submissions under a single, meaningful form name.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Feb 2025 07:54:21 GMT</pubDate>
    <dc:creator>MadhumithaR</dc:creator>
    <dc:date>2025-02-04T07:54:21Z</dc:date>
    <item>
      <title>Non hubspot forms - Rename issue</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Non-hubspot-forms-Rename-issue/m-p/1103538#M80082</link>
      <description>&lt;P class=""&gt;We have a non-HubSpot form where.Initially, form submissions were collected under a name created from Tailwind CSS classes (e.g., "w-full, grid").We renamed the form to be more meaningful (e.g., "contactForm.Now new submissions are appearing under "contactForm234234341" (with random numbers).We need all submissions - both old and new - to appear under one meaningful form name&lt;/P&gt;&lt;P class=""&gt;Need solution to consolidate submissions under a single, meaningful form name.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 07:54:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Non-hubspot-forms-Rename-issue/m-p/1103538#M80082</guid>
      <dc:creator>MadhumithaR</dc:creator>
      <dc:date>2025-02-04T07:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Non hubspot forms - Rename issue</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Non-hubspot-forms-Rename-issue/m-p/1104020#M80101</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/893900"&gt;@MadhumithaR&lt;/a&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Welcome to our community! Thanks for your post. I'd like to invite some of our community members to the converstaion — hey &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/146956"&gt;@BarryGrennan&lt;/a&gt;&lt;/SPAN&gt; &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; &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/72866"&gt;@Jake_Lett&lt;/a&gt;&lt;/SPAN&gt;, do you have any suggestions or other thoughts on this issue for &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/893900"&gt;@MadhumithaR&lt;/a&gt;&lt;/SPAN&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for taking a look! — Jaycee&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 22:20:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Non-hubspot-forms-Rename-issue/m-p/1104020#M80101</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2025-02-04T22:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Non hubspot forms - Rename issue</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Non-hubspot-forms-Rename-issue/m-p/1104218#M80116</link>
      <description>&lt;P&gt;Thanks for the heads up on this&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;This is something I have wondered about myself because I have a WordPress site with active campaign forms embedded. The form ID is dynamic and so I have a ton of unique forms in my HubSpot account. I noticed if you remove the ID and CSS and set a new ID you can have more control over how it is named.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you would need to write some javascript to clear the dynamic ID and set a new ID that stays static on each payload. This works but you need to test to make sure your form still works with the ID change. If so, you should be good but if not I don't see a way around this except using the HubSpot API to submit form submissions instead of the default tracking script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;document.addEventListener("DOMContentLoaded", function () {
    var form = document.querySelector("form"); // Adjust selector if needed

    if (form) {
        // Remove existing form ID
        form.removeAttribute("id");

        // Remove all existing classes
        form.className = "";

        // Get the page slug (last part of the URL path)
        var pageSlug = window.location.pathname.split("/").filter(Boolean).pop() || "home"; 

        // Set new form ID
        var newFormId = "contactForm_" + pageSlug;
        form.setAttribute("id", newFormId);
    }
});&lt;/LI-CODE&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="Jake_Lett_0-1738752197363.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/137672iF8D5EE504B87310A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jake_Lett_0-1738752197363.png" alt="Jake_Lett_0-1738752197363.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 10:46:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Non-hubspot-forms-Rename-issue/m-p/1104218#M80116</guid>
      <dc:creator>Jake_Lett</dc:creator>
      <dc:date>2025-02-05T10:46:31Z</dc:date>
    </item>
  </channel>
</rss>

