# Capturing hidden fields from Gravity Forms

**URL:** <https://community.hubspot.com/t/capturing-hidden-fields-from-gravity-forms/58978>\
**Category:** Lead Capture Tools\
**Tags:** developer, forms, enterprise\
**Created:** [June 14, 2022, 11:32am UTC](https://community.hubspot.com/t/capturing-hidden-fields-from-gravity-forms/58978 "2022-06-14T11:32:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marie\_1](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@Marie\_1](https://community.hubspot.com/u/Marie_1)\
**Post date:** [June 14, 2022, 11:32am UTC](https://community.hubspot.com/t/capturing-hidden-fields-from-gravity-forms/58978/1 "2022-06-14T11:32:06Z")

</div>

Help please! I can’t work out how to pick up the hidden fields from a Gravity form on my wordpress website. I can see the code relating to one of the hidden field is as below.

`<li id="field_5_13" class="gfield gfield--width-full gform_hidden field_sublabel_below field_description_below gfield_visibility_visible" data-js-reload="field_5_13"><div class="ginput_container ginput_container_text"><input name="input_13" id="input_5_13" type="hidden" class="gform_hidden" aria-invalid="false" value="Internal Team"></div></li>`

We have Hubspot code installed to capture the non-hubspot form. None of the hidden data fields are being captured at all. I’m don’t even get any error message to match to a contact property.

Hopefully someone is able to provide me with some direction.

thanks

---

<div class="post-metadata">

**Author:** ![JKohlmeier](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jkohlmeier/32/65473_2.png) [@JKohlmeier](https://community.hubspot.com/u/JKohlmeier)\
**Post date:** [June 14, 2022, 2:48pm UTC](https://community.hubspot.com/t/capturing-hidden-fields-from-gravity-forms/58978/2 "2022-06-14T14:48:48Z")

</div>

Hey there,

A couple things to keep in mind:

The non-hubspot form will only bring over data when the property in HubSpot is a single-line text field type.  
They match to existing contact properties in HubSpot using logic in the following order:

1. field name with contact property internal name
2. field label with contact property name
3. field label with contact property internal name
4. field name with contact property name  
([Use non-HubSpot forms](https://knowledge.hubspot.com/forms/use-non-hubspot-forms#mapping-non-hubspot-form-fields-and-hubspot-properties))  
Gravity Forms does have a HubSpot Add-on that gives you much more control on mapping submissions into HubSpot. I’ve had lots of luck with it on our sites. [Hubspot - Gravity Forms](https://www.gravityforms.com/add-ons/hubspot/)

---

<div class="post-metadata">

**Author:** ![Marie\_1](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@Marie\_1](https://community.hubspot.com/u/Marie_1)\
**Post date:** [June 14, 2022, 11:07pm UTC](https://community.hubspot.com/t/capturing-hidden-fields-from-gravity-forms/58978/3 "2022-06-14T23:07:52Z")

</div>

Thanks for the response. I have created custom properties however they are not being found when the form is submitted.

I will try the Hubspot add-on to see if this helps.

regards

---

<div class="post-metadata">

**Author:** ![margaret2](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@margaret2](https://community.hubspot.com/u/margaret2)\
**Post date:** [October 25, 2022, 10:41pm UTC](https://community.hubspot.com/t/capturing-hidden-fields-from-gravity-forms/58978/4 "2022-10-25T22:41:20Z")

</div>

Hi @JKohlmeier ,

Thanks for your post. Right now, I am also using the HS code to capture our Gravity Form on our Wordpress site.

If I install the Gravity Forms HubSpot Add-on, should I remove the HS code we’re currently using? Or can I leave both in place?

Thanks,

Margaret

---

<div class="post-metadata">

**Author:** ![JKohlmeier](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jkohlmeier/32/65473_2.png) [@JKohlmeier](https://community.hubspot.com/u/JKohlmeier)\
**Post date:** [October 26, 2022, 1:15pm UTC](https://community.hubspot.com/t/capturing-hidden-fields-from-gravity-forms/58978/5 "2022-10-26T13:15:46Z")

</div>

@margaret2- Nope - keep using the HS code. That will continue to track Website Traffic and different actions that contacts take on your website. While the Gravity Forms add-on will match up form fields to HubSpot record properties with a little more control.
