# Contact created using Form Submit API

**URL:** <https://community.hubspot.com/t/contact-created-using-form-submit-api/12621>\
**Category:** APIs & Integrations\
**Tags:** forms\
**Created:** [December 28, 2018, 1:14am UTC](https://community.hubspot.com/t/contact-created-using-form-submit-api/12621 "2018-12-28T01:14:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [December 28, 2018, 1:14am UTC](https://community.hubspot.com/t/contact-created-using-form-submit-api/12621/1 "2018-12-28T01:14:58Z")

</div>

Hi Hubspot support,  
I am using Hubsport Web API for Form Submit: [https://developers.hubspot.com/docs/methods/forms/submit\_form](https://developers.hubspot.com/docs/methods/forms/submit_form)  
Sometimes it creates a new Contact, sometimes it updates an existing Contact.  
For example, First and Last names are updated, while email contains all values from previous submissions.  
My questions are:

1. What is the contact behavior on Form Submit?
2. When a new contact is created and when existing is updated?
3. What is Contact unique property? IP address? HubSpot tracking cookie? Email?
4. Why some fields are updated (names) and some concatenated (email) from prev submissions? Can this be changed?

Thanks you  
 ![slight_smile.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/3/33fb2a14544119c2351fe774141779702299e6a6.png)

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [December 28, 2018, 5:13pm UTC](https://community.hubspot.com/t/contact-created-using-form-submit-api/12621/2 "2018-12-28T17:13:12Z")

</div>

Welcome, [@shirau2](https://community.hubspot.com/u/shirau2).

Happy to help clarify:

1. I’m not sure what you’re asking here. Could you specify the behavior you are wondering about?
2. A new contact will be created if the `email` value passed does not exist in the account and the `hutk` cookie token is already associated with an existing user token.
3. The `email` is the unique property, but a visitor can update their email address (updating a contact instead of creating a new one) if they submit a form and the same `hutk` cookie is passed.
4. Usually, properties (including `email`) will be updated with form submissions using the same `hutk` cookie, but it depends on exactly how the data is passed. This behavior cannot be changed, but if you share a link to a specific example, I can explain further.

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [December 30, 2018, 12:16am UTC](https://community.hubspot.com/t/contact-created-using-form-submit-api/12621/3 "2018-12-30T00:16:07Z")

</div>

Thanks for such detailed response - it really helped.  
Just wanted to verify that contact is created or updated according to HULK cookie.  
Meaning that on the same machine contact will be updated until he has the same HULK cookie value and  
new contact will be created when HULK cookie is cleared.  
Is this correct?

Thank you

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [December 31, 2018, 12:50pm UTC](https://community.hubspot.com/t/contact-created-using-form-submit-api/12621/4 "2018-12-31T12:50:23Z")

</div>

Hey, [@shirau2](https://community.hubspot.com/u/shirau2).

It depends on the situation. The `email` value matters as well.

For example:

- If a new submission uses the same `email` and the same `hutk` cookie as a previous submission, then the existing contact will be _ **updated** _.
- If a new submission uses the same `email` and a different `hutk` cookie as a previous submission, then the existing contact will be _ **updated** _ (through the `email` address).
- If a new submission uses a different `email` and the same `hutk` cookie as a previous submission, then the existing contact’s `email` will be _ **updated** _.
- If a new submission uses a different `email` _and_ a different `hutk` cookie as a previous submission (cookies cleared), then a new contact record will be _ **created** _.

You can also [disable cookie tracking](https://knowledge.hubspot.com/articles/kcs_article/forms/create-forms#customize-your-form-options) on forms so that submissions using different email addresses will _always_ create new contact records, regardless of `hutk` cookie.
