Hi, it seems the client scripts don't fire if I have only PHP validation on required fields. How do we enable our own validation in Form_CustomValidate without enabling the built-in Javascript validation?
If I enable it, I can use this function to validate my form with jQuery validate no problem, but it get added on TOP of the existing validation. I want to combine my own js validation with the server-side PHP validation on required etc fields.
function(fobj) { // DO NOT CHANGE THIS LINE!
// Your custom validation code here, return false if invalid.
var form = $("form#fdemosadd");
form.validate({
rules: { //
x_demo_owner: { required: true },
x_demo_filename: { required: true },
x_demo_slated: { required: true }
}
});
if (form.valid()) return true;
}