mgildea / Multi-Step-Form-Js

Multi Step Form with jQuery validation
MIT License
49 stars 25 forks source link

Script ignores validate values #17

Open shockalotti opened 6 years ago

shockalotti commented 6 years ago

Hi there,

I'm not able to pass values into - validate: {}.

When I do, the script ignores any jquery-validate.

I tested this on your jsfiddle, too.

I had to resort to - $("form").validate({}) - instead.

viterzbayraku commented 5 years ago

Same problem

neilctm commented 5 years ago

@mgildea Any chance you can take a look at this?

sagaban commented 5 years ago

The line 313 from src/multi-step-form.js file calls validate function without passing the validate config object. In my case, changing it into if (form.validate(settings.validate).subset(view)) { fix this problem. @mgildea Do you want em to create a PR fixing this?