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

Multiple Validation Type #24

Open
ajoudeh opened this issue Mar 22, 2017 · 0 comments
Open

Multiple Validation Type #24

ajoudeh opened this issue Mar 22, 2017 · 0 comments
Assignees
Labels

Comments

@ajoudeh
Copy link

ajoudeh commented Mar 22, 2017

Dear, i use this code to validation:

[['phone'], PhoneInputValidator::className(), 'type' => PhoneNumberType::MOBILE]

this allow only Mobile, when i use PhoneNumberType::FIXED_LINE_OR_MOBILE, it not working as we expect.
Ex:

(Mobile) +962797986466 => not valid ==> type = 1
(Landline) +96265403949 => not valid ==> type = 0
so any solution to validate phone if it is Moblie Or Landline?

Thanks,

@Borales Borales self-assigned this Mar 22, 2017
@Borales Borales added the bug label Mar 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants