<?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: Adding ID to form in a template in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Adding-ID-to-form-in-a-template/m-p/512406#M25622</link>
    <description>&lt;P&gt;Hi Erod,&lt;/P&gt;
&lt;P&gt;thank you for your answer!&lt;/P&gt;
&lt;P&gt;My issue is not about adding a form but adding an ID, for example #form&lt;/P&gt;
&lt;P&gt;This is because I have to create a button that link to the form section of the page in this way: &lt;A href="http://www.page.com/#form" target="_blank"&gt;www.page.com/#form&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Oct 2021 12:37:46 GMT</pubDate>
    <dc:creator>EricaFontimedia</dc:creator>
    <dc:date>2021-10-19T12:37:46Z</dc:date>
    <item>
      <title>Adding ID to form in a template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-ID-to-form-in-a-template/m-p/511820#M25596</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi everybody,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have an issue that you probably know:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to add an ID to a form in the template of the page or in the module.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With the old editor it was really simple, but how can I do it now?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried to inserted it in the code but id doesn't appear in the code of the page.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your help!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Anther question:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;the HubSpot support advice me to use the Slack group, but I see there are a lot of questions and no answers. How does it work, so?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 13:20:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-ID-to-form-in-a-template/m-p/511820#M25596</guid>
      <dc:creator>EricaFontimedia</dc:creator>
      <dc:date>2021-10-18T13:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Adding ID to form in a template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-ID-to-form-in-a-template/m-p/512016#M25599</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/65833"&gt;@EricaFontimedia&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think I understand your prpoblem but let me know if I'm way off base. Have you tried adding a Form Field from the Fields section on the right hand side of your module? If you do, you'll be able to select the form you want. Once you select the form, you'll have to paste either the snippet or value (depending on how your code set up) in your module—most likely replacing the code you're currently using. I've pasted some screenshots below. Hopefully they help.&amp;nbsp;&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="Screen Shot 2021-10-18 at 10.19.29 AM.png" style="width: 395px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/52227iA74209F001AE0DCE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-10-18 at 10.19.29 AM.png" alt="Screen Shot 2021-10-18 at 10.19.29 AM.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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-10-18 at 10.23.43 AM.png" style="width: 428px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/52228i10659A423EBCDD0E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-10-18 at 10.23.43 AM.png" alt="Screen Shot 2021-10-18 at 10.23.43 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 17:29:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-ID-to-form-in-a-template/m-p/512016#M25599</guid>
      <dc:creator>erod</dc:creator>
      <dc:date>2021-10-18T17:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Adding ID to form in a template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-ID-to-form-in-a-template/m-p/512406#M25622</link>
      <description>&lt;P&gt;Hi Erod,&lt;/P&gt;
&lt;P&gt;thank you for your answer!&lt;/P&gt;
&lt;P&gt;My issue is not about adding a form but adding an ID, for example #form&lt;/P&gt;
&lt;P&gt;This is because I have to create a button that link to the form section of the page in this way: &lt;A href="http://www.page.com/#form" target="_blank"&gt;www.page.com/#form&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 12:37:46 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-ID-to-form-in-a-template/m-p/512406#M25622</guid>
      <dc:creator>EricaFontimedia</dc:creator>
      <dc:date>2021-10-19T12:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Adding ID to form in a template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-ID-to-form-in-a-template/m-p/512466#M25625</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/65833"&gt;@EricaFontimedia&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;Could you post the code for your module?&amp;nbsp; When you insert a form it will automatically be given an id.&amp;nbsp; What you probably want&amp;nbsp; to do is wrap the form in a div with an ID.&amp;nbsp; Remember, an ID should only be used once on a page so you might want to make the ID a text field in your module so you can create the&amp;nbsp; ID when building the page itself.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 14:19:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-ID-to-form-in-a-template/m-p/512466#M25625</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2021-10-19T14:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Adding ID to form in a template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-ID-to-form-in-a-template/m-p/512611#M25631</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/65833"&gt;@EricaFontimedia&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Oooooh, got it. You're talking about an inline ID&amp;nbsp;(i.e. &amp;lt;div id="form"&amp;gt;&amp;lt;/div&amp;gt;) to create an anchor link and not the actual form ID (unique identifier).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try wrapping the form code in a div with the form ID:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;div id="form"&amp;gt;
{# form markup here #}
&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should work however it might depend on the way you have your form set up. Give it a try and if it doesn't work, provide a link or screenshot of your form.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edgar&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 19:03:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-ID-to-form-in-a-template/m-p/512611#M25631</guid>
      <dc:creator>erod</dc:creator>
      <dc:date>2021-10-19T19:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Adding ID to form in a template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-ID-to-form-in-a-template/m-p/515459#M25717</link>
      <description>&lt;P&gt;Thank you erod!&lt;/P&gt;
&lt;P&gt;I've solved using the current ID of the form.&lt;/P&gt;
&lt;P&gt;It's not a template edit but I was wasting to much time on this task.&lt;/P&gt;
&lt;P&gt;Next time I'll try your solution!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 16:33:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-ID-to-form-in-a-template/m-p/515459#M25717</guid>
      <dc:creator>EricaFontimedia</dc:creator>
      <dc:date>2021-10-25T16:33:51Z</dc:date>
    </item>
  </channel>
</rss>

