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

Unique multiple fields #485

Open
Hesesses opened this issue Apr 15, 2021 · 0 comments
Open

Unique multiple fields #485

Hesesses opened this issue Apr 15, 2021 · 0 comments

Comments

@Hesesses
Copy link

Description

Would be nice if it would be possible to check if a row would be unique with multiple fields. For example
phone field needs to be unique together with firstname.

phone 12345 + firstname john
phone 12345 + firstname john
That would be invalid

phone 12345 + firstname john
phone 12345 + firstname mark
That would be valid

Describe the solution you'd like

If this rule is added to phone, you could add array of other fields as param
RxwebValidators.unique(['firstname')

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

No branches or pull requests

2 participants