# Cannot figure out how to edit custom module fields when being used inside template

**URL:** <https://community.hubspot.com/t/cannot-figure-out-how-to-edit-custom-module-fields-when-being-used-inside-template/45046>\
**Category:** CMS Development\
**Created:** [October 7, 2021, 8:06pm UTC](https://community.hubspot.com/t/cannot-figure-out-how-to-edit-custom-module-fields-when-being-used-inside-template/45046 "2021-10-07T20:06:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kdoneson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kdoneson/32/28756_2.png) [@kdoneson](https://community.hubspot.com/u/kdoneson)\
**Post date:** [October 7, 2021, 8:06pm UTC](https://community.hubspot.com/t/cannot-figure-out-how-to-edit-custom-module-fields-when-being-used-inside-template/45046/1 "2021-10-07T20:06:38Z")

</div>

Hi,  
I’m trying to experiment with creating custom modules that can be used by less techinal users via drag and drop templates. I’ve created a super simple module with a single text field and a h1 tag that renders the text. When I add the module to my blank drag/drop template I am unable to edit the text field. Instead I see “this component has no editable fields” under the Default Content section.  
Anyways, please let me know what mistakes I am making and thank you in advnace for anyone who has the time to help!

Module:

 ![module.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/9/7/97bfa5f221ddabf577dbcae0823d5cf3c8bfa253.jpeg)

D&D Template:

 ![template.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/b/1/b13f2866c7d8bc51f3021d9484285eae20d9d31a.png)

---

<div class="post-metadata">

**Author:** ![kdoneson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kdoneson/32/28756_2.png) [@kdoneson](https://community.hubspot.com/u/kdoneson)\
**Post date:** [October 7, 2021, 9:39pm UTC](https://community.hubspot.com/t/cannot-figure-out-how-to-edit-custom-module-fields-when-being-used-inside-template/45046/2 "2021-10-07T21:39:53Z")

</div>

It seems that changing “module.var\_name” to “widget.var\_name” solves my problem. So in this simple example, “module.text\_field” needed to be “widget.text\_field”

---

<div class="post-metadata">

**Author:** ![Genaro](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/genaro/32/76736_2.png) [@Genaro](https://community.hubspot.com/u/Genaro)\
**Post date:** [January 24, 2023, 5:25pm UTC](https://community.hubspot.com/t/cannot-figure-out-how-to-edit-custom-module-fields-when-being-used-inside-template/45046/3 "2023-01-24T17:25:03Z")

</div>

You need to publish it
