# Create or Append a Contact with code

**URL:** <https://forum.wixstudio.com/t/create-or-append-a-contact-with-code/74202>\
**Category:** Ask the community\
**Tags:** wix-crm-backend, wix-auth, question, code\
**Created:** [October 13, 2025, 12:07pm UTC](https://forum.wixstudio.com/t/create-or-append-a-contact-with-code/74202 "2025-10-13T12:07:40Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![Gideon\_Skarzgard](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/gideon_skarzgard/32/87597_2.png) [@Gideon\_Skarzgard](https://forum.wixstudio.com/u/Gideon_Skarzgard)\
**Post date:** [October 15, 2025, 10:14am UTC](https://forum.wixstudio.com/t/create-or-append-a-contact-with-code/74202/16 "2025-10-15T10:14:12Z")

</div>

I think not, but maintained uncertainty so someone that knows can inform me (whether text type here absolutely means type string, & even if so whether some syntax can make it act like other types). Anyway this was AI’s code that just gave many options. I’m most concerned with type text (as the only other types available in for custom field types are number, date & url)

To simplify I tried all the following variations that don’t give red underlines. But they either completely replaces or gives ‘undefined+ “the new value”’.

```javascript
let updatedValue = currentValue + newCustomFieldValue;

```

```javascript
let updatedValue = currentValue
  ? `${currentValue}, ${newCustomFieldValue}`
  : newCustomFieldValue;

```

```javascript
let updatedValue = `${currentValue}, ${newCustomFieldValue}`;

```

How can I properly append?

---

_[View the full topic](https://forum.wixstudio.com/t/create-or-append-a-contact-with-code/74202)._
