Closed twilio-jyoung closed 5 years ago
It seems to be working on the demo page: https://intl-tel-input.com/node_modules/intl-tel-input/examples/gen/national-mode.html
Are you sure your utils.js script is loading properly? And you're only calling getNumber after that script has loaded?
Closing due to inactivity.
Steps to reproduce
initialize
attempt to get e.164 formatted phone number and log it
console.log(iti.getNumber()); console.log(iti.getNumber(intlTelInputUtils.numberFormat.E164));
Expected behaviour
phone number should be in e.164 format
Actual behaviour
phone number is in exact format as entered . ie (214) 214-2142
Initialisation options
above