Stop other events if validation fails
Hi,
I've created a javascript event to check whether fields are completed. The event executes when the submit form button is clicked. The script (see below) works find and a message is displayed. The issue is that once I acknowledge the error the remaining event (navigate to page) is executed anyway.
How do I stop other events being run when an issue is detected in the form?
codeif ($.trim(Appery("enter_name").val()) != "") {
} else {
alert("Please enter your name");
}
/code
Regards, Shaun