Making multistage form connect the inputs to database and get a thank you page when submit

HI,
I made this multistage form https://noamhak.wixsite.com/mysite-1
with this code:

function showPassengers() {
$w(‘#slideshow’).changeSlide(0);
$w(‘#passengers’).disable();
$w(‘#reviews’).enable();
$w(‘#confirmation’).enable();
$w(‘#passengersLine’).show();
$w(‘#reviewsLine’).hide();
$w(‘#confirmationLine’).hide();
}

function showReviews() {
$w(‘#slideshow’).changeSlide(1);
$w(‘#passengers’).enable();
$w(‘#reviews’).disable();
$w(‘#confirmation’).enable();
$w(‘#passengersLine’).hide();
$w(‘#reviewsLine’).show();
$w(‘#confirmationLine’).hide();
}

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

export function passengers_onClick(event) {
showPassengers();
}

export function reviews_onClick(event) {
showReviews();
}

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

export function button7_onClick(event) {
showReviews();
}

export function button6_onClick(event) {
showConfirmation();
}
export function buttondone_onClick(event, $w) {
showConfirmation();
}

I would like the connect the data to my data base.
I created a database- MYDATA
created a dataset
connected every input to the dataset
connected the submit button to submit database and linked it to thank you page.

Its working great on preview but not on live site

Can anyone help?
Thank you

Did you sync your sandbox database to Live:


Also make sure your collection has the correct Permissions .

Thank you very much!
I changed the premissions