I have a validator set up on my form. I have several fields listed as required with data-required-message attributes to display specific messages.
I also have a custom rule to compare two password fields to make sure they are the same:
password = $.trim($password.val());
password2 = $.trim($password2.val());
(password === password2);
validator = $formContainer.data(
What is happening is even when all of the required rules pass and the password mismatch rule returns true, the validator still returns false. If I remove the custom rule everything works fine.
Any help would be greatly appreciated.