Hello, I have a form with two buttons: "Delete" and "View". A checkbox is required for all actions. Validation happens when a button is clicked. If it's "View", it is just a normal operation. However, if it's "Delete", if the form is valid, it then needs to show a confirmation before form submission via custom handler (submitHandler).
submitHandler: function(form) { if (confirmDelete()) { form.submit (); } } Problem: How do I know if the button is Edit or Delete inside submitHandler? The function above open the dialog even for "View" button. Thanks for any suggestion.