I’ve got a form with a selection button, which, although marked as “Required”, can be sent even if the form has not been marked.
Hey,
Can you please send us the site URL, the page name and the buttons you were referring so that we can have a look?
Thanks,
Tal.
Hi Tal
Sure - https://www.hasama-group.co.il/
You can see the form in the middle of the page and also at the footer.
Thanks!
Hi Hadar,
Your form is connected to a database, and this is how ‘Submit’ button knows what fields to validate.
Your checkbox is now connected, therefore the ‘Submit’ button validation is not taking it into consideration.
To fix that, do one of the following:
- connect the checkbox to the database.
- use code to validate and store info in database.
Liran.
Hello Liran, wondering if you’re still around? I have exactly the same issue as Hadar had … all help welcome!
Hi Lissa,
I’m always around
Did you try to do what I’ve suggested?
Liran.
I have the same problem… I have the email, company name, password and profile images connected to the database and I clicked the required button. But when someone submit the form without that fields, the form is sent and updated…
What should I do?
Thanks
Hello,
Im having the problem where I have a code which disallows the form being submitted, payment going through, and the email confirmation being sent if the required checkbox isnt clicked.
HOWEVER, even when they havent ticked the box, it will still take the user to the ‘success page’ ieven if the order hasntt gone through! Please help
The following is my code:
function payNow() {
console.log(“payNow”);
var accepted = false ;
createToken(encodeCard(createCard())).then((token) => {
charge(token, {
amount: payment.amount,
currency: payment.currency
}).then((chargeResponse) => {
if ((“#checkbox1”) !== ‘’ && chargeResponse.id !== undefined) {
wixLocation.to(“/success”);
accepted = true ;
}
});
});
setTimeout( function () {
if (!accepted) {
$w(“#error”).show();
$w(“#error”).text = “Please check your details again, and make sure you have agreed to out Terms of Service.”;
}
}, 3200);
}