# Change users cookie data on form submission

**URL:** <https://community.hubspot.com/t/change-users-cookie-data-on-form-submission/22859>\
**Category:** CMS Development\
**Tags:** forms\
**Created:** [July 14, 2020, 7:25pm UTC](https://community.hubspot.com/t/change-users-cookie-data-on-form-submission/22859 "2020-07-14T19:25:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidFJones](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/davidfjones/32/75439_2.png) [@DavidFJones](https://community.hubspot.com/u/DavidFJones)\
**Post date:** [July 14, 2020, 7:25pm UTC](https://community.hubspot.com/t/change-users-cookie-data-on-form-submission/22859/1 "2020-07-14T19:25:17Z")

</div>

Hey all,

I’m wondering if it’s at all possible to change/update some values in a users tracking cookie on forum submission. If the user changes their name in the form field, can this change be reflected in their cookie?

This is a bit of an extension to this question - [https://community.hubspot.com/t5/CMS-Development/Hubspot-Form-Caching-Data/m-p/353329#M17463](https://community.hubspot.com/t5/CMS-Development/Hubspot-Form-Caching-Data/m-p/353329#M17463)

---

<div class="post-metadata">

**Author:** ![natsumimori](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/natsumimori/32/39807_2.png) [@natsumimori](https://community.hubspot.com/u/natsumimori)\
**Post date:** [July 16, 2020, 9:42am UTC](https://community.hubspot.com/t/change-users-cookie-data-on-form-submission/22859/2 "2020-07-16T09:42:08Z")

</div>

Hi @DavidFJones ,

Let’s see if other Community members have advice on this!

@Jsum and @piersg , could you share your idea here?

---

<div class="post-metadata">

**Author:** ![piersg](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/piersg/32/99782_2.png) [@piersg](https://community.hubspot.com/u/piersg)\
**Post date:** [July 16, 2020, 10:05am UTC](https://community.hubspot.com/t/change-users-cookie-data-on-form-submission/22859/3 "2020-07-16T10:05:56Z")

</div>

Hmm… it’s not updating the cookie, but maybe what you need to do is use the [Contacts API](https://developers.hubspot.com/docs/api/crm/contacts) on page load to get the nickname and add it to the form yourself.

I just did a test with changing the name of my test contact that is autofilled in forms. It took a long time to update in the form (which is your current issue), but when getting the info via the API it shows the updated name immediately.
