-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add optional (configurable with setting) phone number validation. #820
Comments
Hello! That would be a nice thing, however phone numbers may differ from country to country. PHP also does not have a baked in method to validate such values which means that we will need to go for an arbitrary solution. I will skip this for now as I do not want that this potentially becomes a problem any user.
|
Hi, Yes, phone number validation is very difficult.. But what about a "soft validation" ? Because, for now customers can enter "abc" in the phone number field.. For example, libphonenumber from google has a PHP implementation which allow to "soft validate" phone numbers. An other solution will be to only allow numbers in the phone number field or a pattern like "+xxxxx" (where "x" is a number and could have a length from 5 to 20 which should cover all "normal" phone numbers in the world). And this validation could be enabled/disabled with a settings option if needed. What do you think about that ? This is a complicated thing, but I think that improve this validation will be very useful :) |
Soft validation might actually be a good option indeed so that the app does not allow invalid data to be entered. This will also have to be implemented in the frontend so that users see something like a mask when entering data. I will re-open the ticket and set it for v1.5.0.
|
Is is possible to implemented similar to gravity forms |
For now, no validation is done for the phone number.
Adding some validation would be great.
The text was updated successfully, but these errors were encountered: