# Duplicating custom module field to another module

**URL:** <https://community.hubspot.com/t/duplicating-custom-module-field-to-another-module/11017>\
**Category:** CMS Development\
**Created:** [November 26, 2018, 2:08pm UTC](https://community.hubspot.com/t/duplicating-custom-module-field-to-another-module/11017 "2018-11-26T14:08:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_Taylor](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ben_taylor/32/79091_2.png) [@Ben\_Taylor](https://community.hubspot.com/u/Ben_Taylor)\
**Post date:** [November 26, 2018, 2:08pm UTC](https://community.hubspot.com/t/duplicating-custom-module-field-to-another-module/11017/1 "2018-11-26T14:08:52Z")

</div>

Hi,

I am trying to duplicate the text that is entered within a text field on a custom module to a second custom module (I have another custom module on the same template that I’d like the text from that field to automatically appear again).

For example - the main custom module has a text field for ID and they enter 123446. I’d like 123446 to appear automatically in my second custom module so the user doesn’t have to enter this twice on the one page. I’ve tried including the same snippet but it does not display.

Any ideas/suggestions? Thank you!

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [November 26, 2018, 7:58pm UTC](https://community.hubspot.com/t/duplicating-custom-module-field-to-another-module/11017/2 "2018-11-26T19:58:28Z")

</div>

[@Ben\_Taylor](https://community.hubspot.com/t5/user/viewprofilepage/user-id/76556), if it is just some text, you can use a pretty simple jquery script to append the text

example:

```auto
//this is from the first module
<h3 class="productID">Brilliant Copy</h3>

//this is in module 2
<h3 class="productIDredeux"></h3>

// add this to the js part of the second module
$('.productID').text( $('.productIDredeux').text() );

```

This is going to replace any text that is in that field for the second module. Just keep that in mind 🙂

---

<div class="post-metadata">

**Author:** ![Ben\_Taylor](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ben_taylor/32/79091_2.png) [@Ben\_Taylor](https://community.hubspot.com/u/Ben_Taylor)\
**Post date:** [November 27, 2018, 10:39am UTC](https://community.hubspot.com/t/duplicating-custom-module-field-to-another-module/11017/3 "2018-11-27T10:39:01Z")

</div>

@dennisedson Thank so much! that works perfectly  
 ![16x16_smiley-happy.png.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/2/22d5e40d253def47f5f4ea7f0e3e70be19010689.png)
