Reputation: 21
I have created a custom file in displayobjects
in Mura called myform.cfm and added the form code in that form. I am using jQuery Validator to validate the form using the data required attributes of jQuery but it is always skipping the validation. Here is my code:
Mura(function(m) {
window.customFormValidation = function(theform) {
theform.validate({
submitHandler: function(form) {
Mura.submitForm(theform);
return false;
}
});
// let Mura process the form now
//Mura.submitForm(theform);
//return false;
}
});
It is always failing:
I added the following in my form:
<form id="contact_form_request" name="contact_form_request"
data-autowire=true action="" method="post"
onsubmit="window.customFormValidation(this);return false;" novalidate>
Upvotes: 0
Views: 104