# Submit Form API - take also hidden fields into account

**URL:** <https://community.hubspot.com/t/submit-form-api-take-also-hidden-fields-into-account/26797>\
**Category:** HubSpot Ideas\
**Tags:** forms\
**Created:** [October 15, 2020, 2:00pm UTC](https://community.hubspot.com/t/submit-form-api-take-also-hidden-fields-into-account/26797 "2020-10-15T14:00:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Herman](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/herman/32/17731_2.png) [@Herman](https://community.hubspot.com/u/Herman)\
**Post date:** [October 15, 2020, 2:00pm UTC](https://community.hubspot.com/t/submit-form-api-take-also-hidden-fields-into-account/26797/1 "2020-10-15T14:00:17Z")

</div>

Startpoint:

Hubspot Form with some hidden fields with preselected default values.

Case 1:

- Publish this form as a Hubspot embed or on a Hubspot page

- Fill in this form

- All fields are taken into account (also the hidden fields with preselected default values) as the normal form behaviour.

Case 2:

- Fill in this form using the Form API

- Only submitted fields are take into account, the hidden fields (with preselected values) of the form are NOT processed and stored for that contact. You have to submit also the hidden fields with the API to store them in the CRM.

Doesn’t seem logic and a parameter in the API should give you the ability to experience the normal form behaviour?

---

<div class="post-metadata">

**Author:** ![MFischer](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mfischer/32/54841_2.png) [@MFischer](https://community.hubspot.com/u/MFischer)\
**Post date:** [April 2, 2024, 11:50am UTC](https://community.hubspot.com/t/submit-form-api-take-also-hidden-fields-into-account/26797/2 "2024-04-02T11:50:58Z")

</div>

I have also just stumbled across this problem. In my opinion, it makes absolutely no sense to handle hidden fields differently for forms that are submitted via the Forms API than for embedded forms.

In a campaign we have the need to set some fields per form statically. For example, the country.  
Since the data is sent via the Forms API, we now always have to transfer these values, which is illogical and makes the whole thing unnecessarily complicated.

Hidden fields should always be treated in the same way, regardless of whether the data is sent via the Forms API or an embed form is used.

Therefore +1 from my side.
