# Multi-stage form separate entries

**URL:** <https://forum.wixstudio.com/t/multi-stage-form-separate-entries/9907>\
**Category:** Ask the community\
**Tags:** wix-forms, code, question\
**Created:** [August 31, 2018, 9:08am UTC](https://forum.wixstudio.com/t/multi-stage-form-separate-entries/9907 "2018-08-31T09:08:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![schliesmann](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@schliesmann](https://forum.wixstudio.com/u/schliesmann)\
**Post date:** [August 31, 2018, 9:08am UTC](https://forum.wixstudio.com/t/multi-stage-form-separate-entries/9907/1 "2018-08-31T09:08:07Z")

</div>

Hello, I’m creating a custom multi-step form, and the basic functions of saving data to the database and changing slides are working. However, the problem is each step of the form saves data into a separate row in the database.

One peculiarity is that I used custom code on a regular button (not a Wix “user input” button) to create user input. However, on the next slide, I used a Wix “user input” text box.

Is there any way I can tweak the code so that each step of the forms are connected and saved to the same row in the database collection?

The code on the button is:

* * *

export function button11\_click(event, $w) {  
**let** toInsert = {  
“FTHBy”: “yes”,  
};

wixData.insert(“CustomDatabase”, toInsert)  
.then( (results) =\> {  
**let** item = results;  
} )  
. **catch** ( (err) =\> {  
**let** errorMsg = err;  
} );

$w(“#slideshow2”).changeSlide(1);

* * *

Note: I also tried the “save” function instead of “insert”, but the result is the same.

Thank you

---

<div class="post-metadata">

**Author:** ![olesiaz](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/olesiaz/32/1054_2.png) [@olesiaz](https://forum.wixstudio.com/u/olesiaz)\
**Post date:** [September 10, 2018, 3:41pm UTC](https://forum.wixstudio.com/t/multi-stage-form-separate-entries/9907/2 "2018-09-10T15:41:34Z")

</div>

HI!

1. You can use Button with new Action to add new record, Read& Write dataset mode and Buttons with Submit action to update for every slide, note you need uncheck required Setting for inputs to add data in the same record
2. Another way - submit a record 1st time and get & update one each next slide [https://www.wix.com/code/reference/wix-data.html#get](https://www.wix.com/code/reference/wix-data.html#get) , [wix-data - Velo API Reference - Wix.com](https://www.wix.com/code/reference/wix-data.html#update)
