I saw that some addtional validators are available in the library.
I also saw that these are also added to the libraries via the .yml file.
However it looks to me like the additional validators are never attached by the clientside validation module?

In the end I added the jquery.validate.additional library to my own custom module. Is there better way to do this? Otherwise it might be nice to mention in the readme how these additional validations can be used?

Comments

K3vin_nl created an issue. See original summary.

k3vin_nl’s picture

Issue summary: View changes
nikunjkotecha’s picture

Version: 8.x-1.0-rc3 » 8.x-1.x-dev
Component: Documentation » Code
Category: Support request » Plan

I'll update the issue summary with proper plan on this one. Currently it seems it is not used anywhere but for sure we can implement some default plugins to use them.

k3vin_nl’s picture

Or maybe there could be a checkbox on a settings page that would include the additional validators?

nikunjkotecha’s picture

We can for sure attach as library in our code. I'm thinking more about implementing plugins for credit cart, file accept, etc. which are available in additional-methods and used generally.