Is it possible to add a custom multiple test (i.e. one test that depends on multiple inputs) using Parsley?
Sometimes I would like to check a <form> or the section as a whole and provide an error at this level, and not at the <input> level.
For example, imagine a form with <table> that allows the user to enter various combinations of color and size. Let's say I want to check for duplicate combinations. The best way would be to check the line against the line and search for a duplicate line above it. If duplicate lines are found, these whole lines are invalid, without any separate input, actually invalid for each declaration. Moreover, changing any field may make this or another row invalid.
If I try to add, say, "tr.combination" to the inputs parameter, <table> fields will not be added. It seems that the parameters are not passed to the constructor, so it does not return a ParsleyField and instead returns a common Parsley object.
I can’t even build ParsleyFieldMultiple since the selector is hard-coded and the code is very dependent on checkbox / radio
source share