I am building custom step-by-step form based on Contact Form 7 and i need to validate field before going to next section. how i can call validate function on click? I can’t find it in documentation.
$( "#next-section" ).click(function() {
//call validate function (how to do this)??
if('validate function no errors') {
//call my scripts
}
});
You can do this :
You can call .validate plugin for form validation.
I have faced the same problem and got a solution.
I have 2 steps form, and I had an idea to submit the form and then check whether input fields on 1st step were validated (obviously, the form cannot be sent cause there are few fields on a 2nd step, this was made just to use CF7 validation).