# How to add multistage form to the database?

**URL:** <https://forum.wixstudio.com/t/how-to-add-multistage-form-to-the-database/19193>\
**Category:** Ask the community\
**Tags:** code, question, wix-stores\
**Created:** [September 22, 2019, 4:57pm UTC](https://forum.wixstudio.com/t/how-to-add-multistage-form-to-the-database/19193 "2019-09-22T16:57:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fbusiness00](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/fbusiness00/32/14608_2.png) [@fbusiness00](https://forum.wixstudio.com/u/fbusiness00)\
**Post date:** [September 22, 2019, 4:57pm UTC](https://forum.wixstudio.com/t/how-to-add-multistage-form-to-the-database/19193/1 "2019-09-22T16:57:31Z")

</div>

Hi,  
I will create the multi stage form, first three slides working and other three were not opened.  
And how to connect the form to database and link the button to the slides.  
This is link of form and kindly help me to connect to the database each slide and it’s move to next slide when click on the continue button and store all the information into database of all slide when click on the submit.  
[https://johnawad5.wixsite.com/mysite-1](https://johnawad5.wixsite.com/mysite-1)

Thank you.

---

<div class="post-metadata">

**Author:** ![givemeawhisky](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/givemeawhisky/32/5383_2.png) [@givemeawhisky](https://forum.wixstudio.com/u/givemeawhisky)\
**Post date:** [September 22, 2019, 5:28pm UTC](https://forum.wixstudio.com/t/how-to-add-multistage-form-to-the-database/19193/2 "2019-09-22T17:28:13Z")

</div>

As you are using the multistage form already, you have all the elements and the code for it already supplied and setup in that tutorial that you can open straight up into your Wix Editor.

To make additional slides work than just the three that are in the tutorial, then all you need to do is to add more slides to the slideshow like you have done already.

Then you will need to simply add more code and adjust the existing supplied code so that the slide is opened and the buttons all run in order.

So for each new slide you will need code similar to this for it…

```javascript
function showConfirmation() {
    $w('#slideshow').changeSlide(2);
    $w('#passengers').enable();
    $w('#reviews').enable();
    $w('#confirmation').disable();
    $w('#passengersLine').hide();
    $w('#reviewsLine').hide();
    $w('#confirmationLine').show();
}

```

Along with the export function for the button as well.

```javascript
export function confirmation_onClick(event) {
    showConfirmation();
}

```

If you look on each slide, each button has a seperate id name which relates to the slide, so you simply use that button to progress.

Also, have a read of this previous forum post too as it recommends another way of saving instead.  
[https://www.wix.com/corvid/forum/community-discussion/multi-stage-form-separate-entries](https://www.wix.com/corvid/forum/community-discussion/multi-stage-form-separate-entries)

Here is the API reference for Slideshow.  
[Slideshow - Velo API Reference - Wix.com](https://www.wix.com/corvid/reference/$w.Slideshow.html)

---

<div class="post-metadata">

**Author:** ![fbusiness00](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/fbusiness00/32/14608_2.png) [@fbusiness00](https://forum.wixstudio.com/u/fbusiness00)\
**Post date:** [September 22, 2019, 7:05pm UTC](https://forum.wixstudio.com/t/how-to-add-multistage-form-to-the-database/19193/3 "2019-09-22T19:05:50Z")

</div>

okay, kindly guide me how to put this code into the website.  
how to save into the database.
