# API Form Submit FIELD\_NOT\_IN\_FORM\_DEFINITION

**URL:** <https://community.hubspot.com/t/api-form-submit-field-not-in-form-definition/79562>\
**Category:** APIs & Integrations\
**Tags:** timeline-and-extensions-apis\
**Created:** [April 18, 2023, 4:40pm UTC](https://community.hubspot.com/t/api-form-submit-field-not-in-form-definition/79562 "2023-04-18T16:40:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![GDillenberg](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gdillenberg/32/198373_2.png) [@GDillenberg](https://community.hubspot.com/u/GDillenberg)\
**Post date:** [April 18, 2023, 4:40pm UTC](https://community.hubspot.com/t/api-form-submit-field-not-in-form-definition/79562/1 "2023-04-18T16:40:54Z")

</div>

I get the following error message when i submit a own hosted test form with the API.

`message":"Error in 'fields.i_m_a_'. Field 'i_m_a_' isn't in form definition","errorType":"FIELD_NOT_IN_FORM_DEFINITION"}`

```lia-code-sample
'fields' => [

 [....],
 [
 'name' => 'i_m_a_',
 'value' => 'Other'
 ],		
 ],

```

i\_m\_a\_ ist set as property and is the right “internal name” and the value is one of four option.  
Where is the error?!

---

<div class="post-metadata">

**Author:** ![Kevin-C](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kevin-c/32/34570_2.png) [@Kevin-C](https://community.hubspot.com/u/Kevin-C)\
**Post date:** [April 18, 2023, 6:36pm UTC](https://community.hubspot.com/t/api-form-submit-field-not-in-form-definition/79562/2 "2023-04-18T18:36:49Z")

</div>

Hey @GDillenberg  
This error means that you’ve not yet added the property into the HS form. A while back HS updated the API to require that all properties submitted are part of the HS form or it will error. I would check your form in the HS editor to ensure that the property is present or that you’ve added the correct property.  
Hope this gets you moving

---

<div class="post-metadata">

**Author:** ![GDillenberg](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gdillenberg/32/198373_2.png) [@GDillenberg](https://community.hubspot.com/u/GDillenberg)\
**Post date:** [April 18, 2023, 6:44pm UTC](https://community.hubspot.com/t/api-form-submit-field-not-in-form-definition/79562/3 "2023-04-18T18:44:38Z")

</div>

Thx Kevin! But I don’t have a HS form. I want to save the data from an own form additionally in HS. It is a Non-HubSpot form.  
I use this api url and it works but not with the i\_a\_m\_ property

//[api.hsforms.com/submissions/v3/integration/submit/2697xxxxx/04198c7e-xxx-xxx-bdxxx71-xxxxx](https://api.hsforms.com/submissions/v3/integration/submit/2697xxxxx/04198c7e-xxx-xxx-bdxxx71-xxxxx)

 ![Bildschirm­foto 2023-04-18 um 20.39.56.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/f/f/ff1b2a113e656637d1f310efeb129ab3d280cd76.jpeg)

---

<div class="post-metadata">

**Author:** ![Kevin-C](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kevin-c/32/34570_2.png) [@Kevin-C](https://community.hubspot.com/u/Kevin-C)\
**Post date:** [April 18, 2023, 6:59pm UTC](https://community.hubspot.com/t/api-form-submit-field-not-in-form-definition/79562/4 "2023-04-18T18:59:57Z")

</div>

@GDillenberg Oh interesting!  
I’m wondering if you’ve updated the form that HubSpot is not liking the modification. Maybe @Anton has any insight?

---

<div class="post-metadata">

**Author:** ![Kevin-C](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kevin-c/32/34570_2.png) [@Kevin-C](https://community.hubspot.com/u/Kevin-C)\
**Post date:** [April 18, 2023, 7:17pm UTC](https://community.hubspot.com/t/api-form-submit-field-not-in-form-definition/79562/5 "2023-04-18T19:17:27Z")

</div>

@GDillenberg Just ran across this as well  
[https://community.hubspot.com/t5/Developer-Announcements/Amendment-to-Forms-API-Submission-Validation/td-p/782911](https://community.hubspot.com/t5/Developer-Announcements/Amendment-to-Forms-API-Submission-Validation/td-p/782911)

---

<div class="post-metadata">

**Author:** ![GDillenberg](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gdillenberg/32/198373_2.png) [@GDillenberg](https://community.hubspot.com/u/GDillenberg)\
**Post date:** [April 18, 2023, 10:37pm UTC](https://community.hubspot.com/t/api-form-submit-field-not-in-form-definition/79562/6 "2023-04-18T22:37:05Z")

</div>

Well, i use the secure endpoint and i works out of the box.

[api.hsforms.com/submissions/v3/integration/secure/submit](http://api.hsforms.com/submissions/v3/integration/secure/submit)
