You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
libphonenumber can guess the country if the input number starts with a plus sign (+). This is a pretty useful feature from the library and nice to have shown. Here is a hackish demonstration by sending a null character (%00 urlencoded) to the form to circunvent the required country code:
It is an option, however it depends about how do you want to demonstrate the library. Unfortunately parse() it does not work without country definition with numbers starting without +, e.g. 0050689999999 (just because 00 is country specific), maybe explaining this fact or simply checking via javascript if the field has a leading + to enable the unknown option in the selection dropdown, or returning an explanation after the form submit when the missing country error appears.
libphonenumber can guess the country if the input number starts with a plus sign (+). This is a pretty useful feature from the library and nice to have shown. Here is a hackish demonstration by sending a null character (%00 urlencoded) to the form to circunvent the required country code:
http://giggsey.com/libphonenumber/?phonenumber=%2B50689999999&country=%00
Which will resolve properly the country code by itself.
The text was updated successfully, but these errors were encountered: