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

Jio Numbers '877 918 9177', '8369299064', '8169470539'. showing invalid numbers. #693

Closed
VVNFERNANDES opened this issue Feb 12, 2018 · 5 comments

Comments

@VVNFERNANDES
Copy link

IMPORTANT: please note that the autoFormat feature (format-as-you-type) was removed in v8.0.0 - read more here: #346. Please do not open any new issues about this topic.

IMPORTANT: we use libphonenumber for formatting and validation - if your issue relates to one of these things, please check their test site first and if you see the problem there please file an issue with them instead: https://rawgit.com/googlei18n/libphonenumber/master/javascript/i18n/phonenumbers/demo-compiled.html

Steps to reproduce

  1. Have country india selected
  2. Type in '877 918 9177', '8369299064', '8169470539' any of these numbers
  3. Click submit.
  4. Validation would give them invalid numbers

Expected behaviour

Should be considered valid number

Actual behaviour

Validation would give them invalid numbers

@jackocnr
Copy link
Owner

And did you check if libphonenumber considers them valid?

@VVNFERNANDES
Copy link
Author

Yes Checked. The number shows valid on libphonenumber

@jackocnr
Copy link
Owner

Those numbers show as valid for me on the Validation demo. Are you sure you're using the latest version of the plugin?

@VVNFERNANDES
Copy link
Author

Hi yes I was on older version . Now switched to new version and it validates now. But now the geolookup is giving issue. It is not selecting the country code base on geo lookup.
I am using the following code:

$('form :input[name=mobile]').each(function (index) {
$(this).intlTelInput("setCountry", "in");
$(this).intlTelInput({
geoIpLookup: function (callback) {
$.get('http://ipinfo.io', function () {
}, "jsonp").always(function (resp) {
var countryCode = (resp && resp.country) ? resp.country : "";
callback(countryCode);
});
utilsScript: "js/intlTelInput/js/utils.js"
});
});

@jackocnr
Copy link
Owner

Please use code formatting so it's readable.

And you can't call setCountry before you've initialised the plugin.

And do you have any JS errors in the console?

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

2 participants