# Wix Data Insert values into Address Field

**URL:** <https://forum.wixstudio.com/t/wix-data-insert-values-into-address-field/70313>\
**Category:** Ask the community\
**Tags:** wix-data, wix-bookings, question, code\
**Created:** [April 15, 2025, 10:36am UTC](https://forum.wixstudio.com/t/wix-data-insert-values-into-address-field/70313 "2025-04-15T10:36:20Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Pratham](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/pratham/32/119586_2.png) [@Pratham](https://forum.wixstudio.com/u/Pratham)\
**Post date:** [April 19, 2025, 1:47pm UTC](https://forum.wixstudio.com/t/wix-data-insert-values-into-address-field/70313/5 "2025-04-19T13:47:09Z")

</div>

> [@Jamie\_Webb](#):
>
> I really need to know the format that will be accepted by Wix Insert into a CRM Address field.

This is why I pointed you to the address input documentation. I know you are **NOT** using an address input but getting that data from elsewhere, but what I suggested was to see the format that the Address Input uses and try to parse your text into the same format before entering it into your CMS.

> [@Jamie\_Webb](#):
>
> I could really do with a working example of code for inserting into a CRM table.

Which is why it is always recommended to search on the forum first for similar questions before posting your own. Chances are somebody has already faced the same issue before you and has found a working solution to it. All you need to do is to research thoroughly first.

> [@Address Database field type](https://forum.wixstudio.com/t/address-database-field-type/29593/7):
>
> People, I solved it! I just haven’t got the time to post it here. Here is the thing, the Address Database Field is a JSON, so to save it to your dataset you need to format it as a JSON. First I created an object as a container to format the address: function createNewAddressObject(obj) { let { address\_components } = obj // extract the address\_components property of the JSON let fullAddress = { // this is the JSON object that is going to be pushed to the database city: "", loc…

The solution above seems to format the object into a valid address using an external API. If straightforward text-to-object parsing isn’t working, then you can take some inspiration from this one and customize it to fit your needs.

---

_[View the full topic](https://forum.wixstudio.com/t/wix-data-insert-values-into-address-field/70313)._
