Skip to content
New issue

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

Validate that 2 fields are not equal #49

Open
tungtran-zb opened this issue Sep 25, 2022 · 2 comments
Open

Validate that 2 fields are not equal #49

tungtran-zb opened this issue Sep 25, 2022 · 2 comments

Comments

@tungtran-zb
Copy link

tungtran-zb commented Sep 25, 2022

Expected Behavior

  • I want to validate that 2 fields are not equal.

Context

  • I'm working with change PIN and need to validate new pin is not equal to the old pin
    ex: https://docs.unit.co/cards/#change-pin
  • Something like this
    validations: ['required', '/^([0-9]{4})$/', { type: 'compareValue', params: { field: PIN_FIELD_NAME, function: 'notMatch' } }],
@flor-master
Copy link
Contributor

Hi @tungtran-zb - let me take a look at it

@nivmeshorer
Copy link

any update about it? @flor-master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants