# Accessing module value that is defined inside custom module

**URL:** <https://community.hubspot.com/t/accessing-module-value-that-is-defined-inside-custom-module/9077>\
**Category:** CMS Development\
**Created:** [June 6, 2018, 4:35pm UTC](https://community.hubspot.com/t/accessing-module-value-that-is-defined-inside-custom-module/9077 "2018-06-06T16:35:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vin-aws](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/vin-aws/32/13521_2.png) [@vin-aws](https://community.hubspot.com/u/vin-aws)\
**Post date:** [June 6, 2018, 4:35pm UTC](https://community.hubspot.com/t/accessing-module-value-that-is-defined-inside-custom-module/9077/1 "2018-06-06T16:35:16Z")

</div>

Say I have:

```auto
{% for i in range(3) %}
 {% text label="Video Embed" "video_embed" no_wrapper=True, unique_in_loop=True, value="" %}

```

How would I access the value of this text module? I know if it is created in the custom module sidebar itself I can simply do {{ widget.my\_text }} but this is created on the template page only.

---

<div class="post-metadata">

**Author:** ![TRooInbound](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/trooinbound/32/89545_2.png) [@TRooInbound](https://community.hubspot.com/u/TRooInbound)\
**Post date:** [June 12, 2018, 5:37am UTC](https://community.hubspot.com/t/accessing-module-value-that-is-defined-inside-custom-module/9077/2 "2018-06-12T05:37:45Z")

</div>

Hi @vin-aws,

You can get value of textbox using below syntax code

`{{ content.widgets.module_name.body.value }}`

For your block of code you have added **video\_embed** name to your text module, so you need to replace module\_name with your module name like below

`{{ content.widgets.video_embed.body.value }}`

Hope it works for you

Did our post help answer your query? Help the Community by **marking it as a solution.**

**Team TRooInbound |** **[hello@trooinbound.com](mailto:hello@trooinbound.com) | [https://www.trooinbound.com](https://www.trooinbound.com)**
