# Custom fields for coded templates

**URL:** <https://community.hubspot.com/t/custom-fields-for-coded-templates/3387>\
**Category:** CMS Development\
**Created:** [September 20, 2017, 7:29pm UTC](https://community.hubspot.com/t/custom-fields-for-coded-templates/3387 "2017-09-20T19:29:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kk](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kk/32/29892_2.png) [@kk](https://community.hubspot.com/u/kk)\
**Post date:** [September 20, 2017, 7:29pm UTC](https://community.hubspot.com/t/custom-fields-for-coded-templates/3387/1 "2017-09-20T19:29:19Z")

</div>

Is there a way to allow/add the same sort of custom fields (text, rich text, choice, boolean, image) that are available for custom modules?

---

<div class="post-metadata">

**Author:** ![Jsum](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jsum/32/20405_2.png) [@Jsum](https://community.hubspot.com/u/Jsum)\
**Post date:** [September 20, 2017, 8:19pm UTC](https://community.hubspot.com/t/custom-fields-for-coded-templates/3387/2 "2017-09-20T20:19:33Z")

</div>

@kk,

I’m not quite sure what you are asking here. You can’t use custom module tokens outside of the custom module builder, but…

What I think you are wanting to do is take a coded template page and make it editable(?). If so then yes, it is not only possible but pretty easy. You can use HubL. Look at the [available modules](http://designers.hubspot.com/docs/hubl/hubl-supported-modules) in HubL and replace your static content for those editable fields. Just be mindful of nesting quotations.

---

<div class="post-metadata">

**Author:** ![kk](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kk/32/29892_2.png) [@kk](https://community.hubspot.com/u/kk)\
**Post date:** [September 20, 2017, 9:33pm UTC](https://community.hubspot.com/t/custom-fields-for-coded-templates/3387/3 "2017-09-20T21:33:30Z")

</div>

Thanks @Jsum. I did sorta of look at the HubL but I wasn’t sure how I could make a portion editable.

Basically I’m trying to create a template with an iframe, where the iframe source is what would change from page to page. Currently I’ve just been duplicating the coded template and pasting the url manually. I would love to have that src url be editable by anyone who references that same template.

---

<div class="post-metadata">

**Author:** ![Jsum](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jsum/32/20405_2.png) [@Jsum](https://community.hubspot.com/u/Jsum)\
**Post date:** [September 20, 2017, 10:48pm UTC](https://community.hubspot.com/t/custom-fields-for-coded-templates/3387/4 "2017-09-20T22:48:37Z")

</div>

just use a text module and set no\_wrapper to true:

`{% text "iframe_url" label="Iframe URL", no_wrapper=True %}`

Just place this as the src value and you can paste the url into the field that shows up in the page editor. Be mindful of the quotations, you can change the ones above to single quotes, or you singles around the src value.

---

<div class="post-metadata">

**Author:** ![kk](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kk/32/29892_2.png) [@kk](https://community.hubspot.com/u/kk)\
**Post date:** [September 20, 2017, 11:11pm UTC](https://community.hubspot.com/t/custom-fields-for-coded-templates/3387/5 "2017-09-20T23:11:35Z")

</div>

@Jsum Ah ha, I understand now. Thank you so much!
