How can I get parsley to include more fields in its AJAX-Calls, so that I can test dependencies between these fields?
Example:
<form method="post" action="/myscript.php" data-parsley-validate>
<input type="text" name="i1"
data-parsley-group="g1"
data-parsley-remote="/myvalidator.php"
/>
<input type="text" name="i2"
data-parsley-group="g1"
data-parsley-remote="/myvalidator.php"
/>
<button type="submit">Send</button>
</form>
Currently the $_POST
-data only contains the field being validated, but I'd need to know the input of other fields in the same group. BTW, this setup triggers other questions, like the sequence of validation (i1 cannot be evaluated before i2 is filled, too - but I'd be happy to only validate i2 and pass the value of i1 in that call).