# Get form fields name through Hubl

**URL:** <https://community.hubspot.com/t/get-form-fields-name-through-hubl/16824>\
**Category:** CMS Development\
**Tags:** forms\
**Created:** [October 19, 2019, 3:29pm UTC](https://community.hubspot.com/t/get-form-fields-name-through-hubl/16824 "2019-10-19T15:29:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RomanGruit](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/romangruit/32/84954_2.png) [@RomanGruit](https://community.hubspot.com/u/RomanGruit)\
**Post date:** [October 19, 2019, 3:29pm UTC](https://community.hubspot.com/t/get-form-fields-name-through-hubl/16824/1 "2019-10-19T15:29:24Z")

</div>

Hey. Is there a way to get a form fields through Hubl where the form is module field by itself? For example, {{ module.form\_field.form\_id }} gives us form id. I’m looking for something like.

`{{ module.form_field.fields[1].name }}`

---

<div class="post-metadata">

**Author:** ![lscanlan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lscanlan/32/66262_2.png) [@lscanlan](https://community.hubspot.com/u/lscanlan)\
**Post date:** [October 29, 2019, 7:07pm UTC](https://community.hubspot.com/t/get-form-fields-name-through-hubl/16824/2 "2019-10-29T19:07:08Z")

</div>

Hi @RomanGruit.

I’ve been playing around with this and it doesn’t look like a module’s form field’s fields are exposed in any way through HubL. You can actually see everything that’s exposed by using the |pprint filter: [Accounts Dashboard | HubSpot](https://designers.hubspot.com/docs/hubl/hubl-supported-filters#pprint). So for example right in the module’s HTML + HubL field you could just print out all the module data with this: {{ module|pprint }} . Or if you wanted to see just a module field’s data, you could print that into your HTML with something like this: {{ module.form\_field|pprint }} . I also usually will add some text to indicate what specifically I’m printing out, like:

`<p>module.form_field|pprint: {{ module.form_field|pprint }}</p>`

What is it that you’re trying to do with the module’s form field’s fields? Maybe there’s some other way to accomplish it.

---

<div class="post-metadata">

**Author:** ![RomanGruit](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/romangruit/32/84954_2.png) [@RomanGruit](https://community.hubspot.com/u/RomanGruit)\
**Post date:** [November 11, 2019, 8:56am UTC](https://community.hubspot.com/t/get-form-fields-name-through-hubl/16824/3 "2019-11-11T08:56:00Z")

</div>

Hi @lscanlan ! Thank you for your prompt response. I’m writing a custom form with submitting it through form API. The problem is that we can’t get to know what fields particular form has on a server level.🤷🏻‍♂️
