@info84338
Never use more than 1x —> $w . onReady ( function () in your code, if you do not want to get code-issues. I already cleaned it up a little bit. ![]()
This seems not to be correct from your side…
if(inputs.every(e => e.valid)){
wixLocation.to("/thks-page");
}else {$w("#error").show();}
wixData.insert("soporte", toInsert)
.then(()=>{ })
.catch((err)=>{let errorMsg = err; console.log(errorMsg), $w("#error").show();});
}
J.D. gave you another suggestion. Read it one more time carefully…

- What should happen , if all your INPUTS are → VALID ?
- What should happen if just ONE of your INPUTS is NOT-VALID ?
Now take a look again at this part of your CODE… (what happens here???)
if(inputs.every(e => e.valid)){
wixLocation.to("/thks-page");
}else {$w("#error").show();}
wixData.insert("soporte", toInsert)
.then(()=>{ })
.catch((err)=>{let errorMsg = err; console.log(errorMsg), $w("#error").show();});
}
If all INPUTS are VALID → you want directly to REDIRECT to another page?
Without saving your INPUTS to your DB? (sure?)
And you want to write all INPUT-VALUES to DB, if just one of the INPUTS is NOT-VALID ?