We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With custom validation: How can i validate two field is equal?
The text was updated successfully, but these errors were encountered:
customValidations: { isEqualPw: function (field) { if(field.id == 're-password' && field.value !== field.closest('form').querySelector('#password').value) { return true; } } }, messages: { isEqualPw: 'no equal pw', }
You can known more easly way?
Sorry, something went wrong.
@onur-km you can use this:
compareFields: field => { const selector = field.dataset.equalto, otherField = field.form.querySelector(selector) if (!selector || !otherField) return false return otherField.value !== field.value }
No branches or pull requests
With custom validation: How can i validate two field is equal?
The text was updated successfully, but these errors were encountered: