Yes, you can definitely handle this situation. you must call the beforesubmit method for this to see one example
$('#ReplayForm').ajaxForm({ beforeSubmit : function(arr, $form, options){ if("condition is true") { return true; //it will continue your submission. } else { return false; //ti will stop your submission. } }, success : function(data){ endLoading(); if(data.result=="success") { showSuccessNotification(data.notification); } else { showErrorNotification(data.notification); } } });
source share