I have a form where I want users to check a box to confirm that they understand the terms of the the upload area. If they fail to check the box they will be alerted upon clicking the upload button. Problem: the alert box comes up correctly however, if you click okay on the alert box the upload continues. I want the user to be returned to the form to check the box. Can anyone tell me what I need to do to correct this problem?
function validate(form) {
if (document.UploadForm.controlled.checked)
{
return true;
}
else{
(alert("You must check the box to continue");
return false;
}
}
function validate(form) {
if (document.UploadForm.controlled.checked)
{
return true;
}
else{
(alert("You must check the box to continue");
return false;
}
}