<?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: Copy fields from one module to another in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Copy-fields-from-one-module-to-another/m-p/891787#M37054</link>
    <description>&lt;P&gt;Thanks, the copying json and re-uploading via the cli worked best for me!&lt;/P&gt;</description>
    <pubDate>Mon, 11 Dec 2023 09:43:10 GMT</pubDate>
    <dc:creator>DM2</dc:creator>
    <dc:date>2023-12-11T09:43:10Z</dc:date>
    <item>
      <title>Copy fields from one module to another</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Copy-fields-from-one-module-to-another/m-p/891418#M37041</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to copy a group of fields from one modue to another?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm aware you can clone modules, but I would like to be able to copy over a complicated set of fields that I've created in one module to a number of exisiting ones.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively is there a way of having some kind of global include that can be shared amongst modules?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 11:56:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Copy-fields-from-one-module-to-another/m-p/891418#M37041</guid>
      <dc:creator>DM2</dc:creator>
      <dc:date>2023-12-09T11:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Copy fields from one module to another</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Copy-fields-from-one-module-to-another/m-p/891487#M37044</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/120752"&gt;@DM2&lt;/a&gt;&amp;nbsp;- There may be cleverer options, but I'd suggest use of the CLI tools features:&lt;/P&gt;&lt;P&gt;- fetch the module with the complicated fields setup to your local evironment&lt;/P&gt;&lt;P&gt;- copy the meta data files from this module to your new module&lt;/P&gt;&lt;P&gt;- upload the new module and all the field options will be replicated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this is helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 21:05:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Copy-fields-from-one-module-to-another/m-p/891487#M37044</guid>
      <dc:creator>SteveHTM</dc:creator>
      <dc:date>2023-12-09T21:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Copy fields from one module to another</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Copy-fields-from-one-module-to-another/m-p/891640#M37046</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/120752"&gt;@DM2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So there is no "quick" way to do this but there are options!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First if you're looking for a global implemetation of custom property selections from a module that can be used throughout a page or theme, you can use my favorite HS property "&lt;A href="https://developers.hubspot.com/docs/cms/building-blocks/modules/export-to-template-context" target="_blank"&gt;export_to_template_context&lt;/A&gt;".&lt;/P&gt;
&lt;P&gt;This property is added to module expression when coding it into a template:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;{% module "job_title" path="@hubspot/text", label="Enter a Job Title", value="Chief Morale Officer", export_to_template_context=True %} 
&lt;/LI-CODE&gt;
&lt;P&gt;You can then use the properties exported from the module by name like:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;{{ widget_data.job_title.body.value }} &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second (as&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/63499"&gt;@SteveHTM&lt;/a&gt;&amp;nbsp; has mentioned) you could use the "copy JSON" option from the module and paste it into another when developing locally:&lt;/P&gt;
&lt;P&gt;When in the design manager, click Actions &amp;gt; Copy JSON. This code can now be pasted into a module's fields.json config file using a coded editor like VSCode. This JSON is also availble from the original module's fields.json files as well.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;[
 {
  "default": {
   "form_id": "7b4fc5b2-1d4a-4a0a-8319-xxxxxxxxxxxxx",
   "response_type": "inline",
   "message": "Thanks for submitting the form.",
   "gotowebinar_webinar_key": null,
   "form_type": "HUBSPOT"
  },
  "display_width": null,
  "id": "form",
  "label": "Form",
  "locked": false,
  "name": "form",
  "required": false,
  "type": "form"
 }
]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Third you can always clone the module!&lt;/P&gt;
&lt;P&gt;In the deisgn manager, right click the module and select "Clone module"&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KevinC_0-1702227295523.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/104977iFB61C1E2249CC939/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KevinC_0-1702227295523.png" alt="KevinC_0-1702227295523.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;There is so much that one can do with just these 2 implementation!&lt;/P&gt;
&lt;P&gt;If you have any question I can help answer please don't hesitate to reach out!&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2023 16:58:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Copy-fields-from-one-module-to-another/m-p/891640#M37046</guid>
      <dc:creator>Kevin-C</dc:creator>
      <dc:date>2023-12-10T16:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Copy fields from one module to another</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Copy-fields-from-one-module-to-another/m-p/891787#M37054</link>
      <description>&lt;P&gt;Thanks, the copying json and re-uploading via the cli worked best for me!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 09:43:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Copy-fields-from-one-module-to-another/m-p/891787#M37054</guid>
      <dc:creator>DM2</dc:creator>
      <dc:date>2023-12-11T09:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Copy fields from one module to another</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Copy-fields-from-one-module-to-another/m-p/891833#M37055</link>
      <description>&lt;P&gt;Here's what I always do:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Navigate to the Module:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Log in to your HubSpot account.&lt;/LI&gt;&lt;LI&gt;Go to the module where you want to copy the fields from. For contacts, it would be the "Contacts" module.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Select Records:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Choose the records that contain the fields you want to copy. This could be a single record or a list of records.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;View and Edit Record:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Open the record you want to copy from.&lt;/LI&gt;&lt;LI&gt;In the record view, find and click on the "Edit" or "Edit properties" option.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Copy Field Values:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Locate the fields you want to copy.&lt;/LI&gt;&lt;LI&gt;Highlight the content of the field and copy it (Ctrl+C or Command+C).&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Navigate to the Target Module:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Go to the module where you want to paste these fields. If it's another contact record, go to that contact record.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Edit Record:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Open the record where you want to paste the copied fields.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Paste Field Values:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Find the corresponding fields in the target record.&lt;/LI&gt;&lt;LI&gt;Paste the copied values into the respective fields (Ctrl+V or Command+V).&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Save Changes:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Save the changes to the record.&lt;BR /&gt;A bonus tip is to always keep reading &lt;A href="https://techtista.com/" target="_blank" rel="noopener"&gt;tech-related blogs&lt;/A&gt; to stay updated.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Mon, 11 Dec 2023 11:56:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Copy-fields-from-one-module-to-another/m-p/891833#M37055</guid>
      <dc:creator>shaider4</dc:creator>
      <dc:date>2023-12-11T11:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Copy fields from one module to another</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Copy-fields-from-one-module-to-another/m-p/967411#M38805</link>
      <description>&lt;P&gt;It would be ideal if there was a way to copy/paste the JSON from one module to another in the HubSpot Design Manager.&amp;nbsp; I like to have a consistent set of style settings across each module within a theme. Having to hand code them in for every module or use an external IDE is tedious.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 16:11:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Copy-fields-from-one-module-to-another/m-p/967411#M38805</guid>
      <dc:creator>jaymewelch</dc:creator>
      <dc:date>2024-04-26T16:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Copy fields from one module to another</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Copy-fields-from-one-module-to-another/m-p/1244098#M44976</link>
      <description>&lt;P&gt;In theory, could this cause issues due to having identical id's across modules in their fields.json files?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2026 11:49:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Copy-fields-from-one-module-to-another/m-p/1244098#M44976</guid>
      <dc:creator>SamDuckett</dc:creator>
      <dc:date>2026-01-22T11:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Copy fields from one module to another</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Copy-fields-from-one-module-to-another/m-p/1244288#M44980</link>
      <description>Not sure since there is a relationship with the module. Does the pair&lt;BR /&gt;create a unique instance, or is it strictly by field ID?.&lt;BR /&gt;&lt;BR /&gt;Either way, it would definitely make sense to generate new IDs when it's&lt;BR /&gt;copied over.&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Jan 2026 18:38:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Copy-fields-from-one-module-to-another/m-p/1244288#M44980</guid>
      <dc:creator>jaymewelch</dc:creator>
      <dc:date>2026-01-22T18:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Copy fields from one module to another</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Copy-fields-from-one-module-to-another/m-p/1245580#M45011</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/793670"&gt;@SamDuckett&lt;/a&gt;&lt;/SPAN&gt;, and thanks so much &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/100782"&gt;@jaymewelch&lt;/a&gt;&lt;/SPAN&gt; for your contribution on the HubSpot Community!&lt;BR /&gt;&lt;BR /&gt;So, field IDs in fields.json are generally unique UUIDs that identify each field within a module.&lt;BR /&gt;&lt;BR /&gt;When you copy a module’s metadata files and upload them as a new module, HubSpot will recognize it as a separate module with its own field instances.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For best results and to prevent any conflicts, it’s a good idea to generate new IDs for your copied fields. You can do this by:&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Manually updating the id values in your copied fields.json, or&lt;BR /&gt;&lt;BR /&gt;- Using the CLI’s hs create module command to set up a fresh module structure, then bringing in your field configurations (without reusing the old IDs).&lt;BR /&gt;&lt;BR /&gt;Field IDs are UUIDs (for example, "id": "357bacfa-2bb8-e996-4589-f55e10d4f1d4"), and each one should be unique.&lt;BR /&gt;&lt;BR /&gt;Here are some resources for reference:&lt;BR /&gt;&lt;BR /&gt;- &lt;A href="https://developers.hubspot.com/docs/cms/reference/fields/module-theme-fields" target="_blank"&gt;Module and theme fields&lt;/A&gt;&lt;BR /&gt;- &lt;A href="https://developers.hubspot.com/docs/cms/reference/fields/overview" target="_blank"&gt;Module and Theme Fields Overview&lt;/A&gt;&lt;BR /&gt;- &lt;A href="https://developers.hubspot.com/docs/cms/start-building/building-blocks/fields/write-fields-using-javascript" target="_blank"&gt;Write module and theme fields using JavaScript&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This approach will help keep your modules organized and running smoothly!&lt;BR /&gt;Bérangère&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;This post was created with the assistance of AI tools&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 16:55:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Copy-fields-from-one-module-to-another/m-p/1245580#M45011</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2026-01-27T16:55:39Z</dc:date>
    </item>
  </channel>
</rss>

