# wixData.insert inserting blank into collection

**URL:** <https://forum.wixstudio.com/t/wixdata-insert-inserting-blank-into-collection/2384>\
**Category:** Ask the community\
**Tags:** wix-members-area, question, code\
**Created:** [November 30, 2021, 9:04pm UTC](https://forum.wixstudio.com/t/wixdata-insert-inserting-blank-into-collection/2384 "2021-11-30T21:04:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![solsticematholympiad](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@solsticematholympiad](https://forum.wixstudio.com/u/solsticematholympiad)\
**Post date:** [November 30, 2021, 9:04pm UTC](https://forum.wixstudio.com/t/wixdata-insert-inserting-blank-into-collection/2384/1 "2021-11-30T21:04:17Z")

</div>

I have the following code:

```javascript
export function insertDataMembers(username, email, password, wsmoStatus, ssmoStatus) {
    let toInsert = {
        'title': username.value,
        'email': email.value,
        'password': password.value,
        'wsmoStatus': wsmoStatus,
        'ssmoStatus': ssmoStatus
    };

    wixData.insert('members', toInsert, options);
}

```

in the backend of my site, and am calling the function from the frontend. However, when I check the actual collection, it appears like new entries have been created, but the title and all the fields I made are blank. The hidden ones aren’t blank, though. The collection is private data, but I’m in the backend and am using suppressAuth and suppressHooks. What’s going wrong?

---

<div class="post-metadata">

**Author:** ![J.D](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/j.d/32/7312_2.png) [@J.D](https://forum.wixstudio.com/u/J.D)\
**Post date:** [November 30, 2021, 9:18pm UTC](https://forum.wixstudio.com/t/wixdata-insert-inserting-blank-into-collection/2384/2 "2021-11-30T21:18:49Z")

</div>

According to your code, the username. email and password that you pass to the functions are of type of object and have a key ‘value’.  
for example:

```javascript
//function call
insertDataMembers({value: 'somename'}, {value: 'some@email.com'}, {value: 'my-password'})

```

Is it right?

---

<div class="post-metadata">

**Author:** ![solsticematholympiad](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@solsticematholympiad](https://forum.wixstudio.com/u/solsticematholympiad)\
**Post date:** [November 30, 2021, 9:31pm UTC](https://forum.wixstudio.com/t/wixdata-insert-inserting-blank-into-collection/2384/3 "2021-11-30T21:31:08Z")

</div>

No, they should be strings. Oops. It works now thank you so much!
