setNumber using a international number
See original GitHub issue// Note: this is not a real Issue, but could not find a fix on Google.
Hi Jackocnr,
I’ve been using in-tel-number for a while now, and so far i’m realley happy with it. Good work! I’m currently working on a big application, where I store the numbers in our database. The numbers are formatted as international numbers using your plugin(e.g. +31629435375).
In our application we want to allow our users to change their phone number. To do so we load the phone number and put it into $("#phoneCall").intlTelInput("setNumber", PHONE_CALL_FROM_DATABASE);
But it does not seem to add it properly.
In the readme file you say that by default, if nationalMode is enabled it will try to use national formatting. I think that’s the problem, but disabling nationalMode in the settings is not an option. so the question: is there a way to set the phone input field with a international number while nationalMode is enabled?
Greets, Zino
Initialisation options
allowExtensions: false
autoFormat: true
autoHideDialCode: true
autoPlaceholder: true
customPlaceholder: null
defaultCountry: ""
geoIpLookup: null
nationalMode: true
numberType: "MOBILE"
onlyCountries: undefined
preferredCountries: ['us', 'gb']
skipUtilScriptDownload: false
utilsScript: ""
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (4 by maintainers)
It does only show the place holder, I want it to show the right flag and the national phone number.
Closing due to inactivity.