How we can do the UI level validation combining multiple fields (other than field validation) when click on the 'Submit' button. In case of violation we should remain in the page without submitting the form.
Thanks in advance,
What if I want to run the validation when click on the 'Submit' button of the create/edit page. It should override the default page submission and to wait until validation is over and then to proceed. Is there any api available for this?
I tried something like this script below and it worked for me. Still expecting better ideas..
var errFlag = false;
/* my validation
set the errFlag if there is a violation
event.preventDefault(); // prevent from submitting
//display error message..
$('input[type="submit"]').prop("disabled",false); // enable the submit button