Since 1 week this error is coming to every dataset which I have created. Previously this was not the case. Everything was working smoothly.
Before I share example I am using wix since 2012. I am a designer and not a coder. However I have tried to learning velo coding with examples. My first multistatebox experiment was successful and the form was working very smooth.
Before one week there was no such error. The form was working absolutely fine. Even in dataset it is saving everything but when we go live the submit button does not work at all.
Here is the backend data collection where it show the all the data.
// API Reference: Introduction - Velo API Reference - Wix.com
// “Hello, World!” Example: Velo Learning Center
$w . onReady ( function () {
//start button change
$w ( “#startbutton” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s1” );
$w ( “#anchor” ). scrollTo ();
} );
//Next arrow PageChange
$w ( “#next1” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s2” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#next2” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s3” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#next3” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s4” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#next4” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s5” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#next5” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s6” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#next6” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s7” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#next7” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s8” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#next8” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s9” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#next9” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s10” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#next10” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s11” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#next11” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s12” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#next12” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s13” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#next13” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s14” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#next14” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s15” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#next15” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “symptoms” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#next16” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “duration” );
$w ( “#anchor” ). scrollTo ();
} );
//PreviousButton PageChange
$w ( “#prev2” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s1” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#prev3” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s2” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#prev4” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s3” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#prev5” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s4” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#prev6” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s5” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#prev7” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s6” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#prev8” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s7” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#prev9” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s8” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#prev10” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s9” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#prev11” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s10” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#prev12” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s11” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#prev13” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s12” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#prev14” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s13” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#prev15” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s14” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#prev16” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “s15” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#prev17” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “symptoms” );
$w ( “#anchor” ). scrollTo ();
} );
//Validations
$w ( “#radioSymptoms” ). onChange ( function () {
if ( $w ( “#radioSymptoms” ). value.length > 0 ) {
$w ( “#next16” ). enable ();
} else { $w ( “#next16” ). disable (); }
});
$w ( “#radioDuration” ). onChange ( function () {
if ( $w ( “#radioDuration” ). value.length > 0 ) {
$w ( “#submit” ). enable ();
} else { $w ( “#submit” ). disable (); }
});
//Restart Test
$w ( “#restartButton1” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “start” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#restartButton2” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “start” );
$w ( “#anchor” ). scrollTo ();
} );
$w ( “#restartButton3” ). onClick ( ( event ) => {
$w ( “#depMultistateBox” ). changeState ( “start” );
$w ( “#anchor” ). scrollTo ();
} );
//RESULT
$w ( “#submit” ). onClick ( ( event ) => {
let a = $w ( “#radioSymptoms” ). value ;
let b = $w ( “#radioDuration” ). value ;
if
( a === “No” && b === “NoDepression” || a === “No” && b === “Depression” || a === “Mild” && b === “NoDepression” || a === “Moderate” && b === “NoDepression” ){
$w ( “#depMultistateBox” ). changeState ( “noDep” );
$w ( “#datasetnewdt” ). setFieldValue ( “result” , “No Depression” );
$w ( “#datasetnewdt” ). save ();
$w ( “#anchor” ). scrollTo ();
}
if ( a === “Mild” && b === “Depression” ){
$w ( “#depMultistateBox” ). changeState ( “mildDep” );
$w ( “#datasetnewdt” ). setFieldValue ( “result” , “Mild Depression” );
$w ( “#datasetnewdt” ). save ();
$w ( “#anchor” ). scrollTo ();
}
if ( a === “Moderate” && b === “Depression” ){
$w ( “#depMultistateBox” ). changeState ( “modDep” );
$w ( “#datasetnewdt” ). setFieldValue ( “result” , “Moderate Depression” );
$w ( “#datasetnewdt” ). save ();
$w ( “#anchor” ). scrollTo ();
}
});
});
Please help.