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
Thank you.
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…
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.
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
Here is the API reference for Slideshow.
Slideshow - Velo API Reference - Wix.com
okay, kindly guide me how to put this code into the website.
how to save into the database.