Questions tagged [intl-tel-input]

For issues relating to the International Telephone Input (intl-tel-input) jQuery plugin.

International Telephone Input (intl-tel-input) is a jQuery plugin for entering and validating international telephone numbers. It adds a flag dropdown to any input, detects the user's country, displays a relevant placeholder and provides formatting/validation methods.

Resources:

120 questions
0
votes
0 answers

How to Seperate country code and phone number seperately in intlTelInput

I'm using intlTelInput plugin in my project i want to get country code and phonenumber seperately i tried some solution but no results. solution 1 , Solution 2 These are the code that i tried till now var default_c='in'; …
sooraj s pillai
  • 866
  • 2
  • 17
  • 39
0
votes
1 answer

How to get country code with ng-intl-tel-input directive

How to get country code from input type in Angularjs I am new in Angularjs, right now I have dropdown of country code + input type text (for mobile number), after a click on submit button, I am getting mobile number successfully but how can I get…
amit
  • 1
  • 1
  • 18
  • 28
0
votes
1 answer

jquery for intlTelInput can't add event listener

trying to do something similar to the country code listener drop down but with a text box which should populate with the country code (so that I can subsequently use the value in PHP code). Adding the event listener doesn't work:…
Bec Martin
  • 23
  • 1
  • 1
  • 7
0
votes
3 answers

Build suddenly started to fail with error TS2304: Cannot find name 'JQueryDeferred'

I'm using ng2-tel-input in my angular App, so far it was working perfectly but suddenly I started getting an error node_modules/@types/intl-tel-input/index.d.ts(111,30): error TS2304: Cannot find name 'JQueryDeferred'. My ng2-tel-input tag…
0
votes
0 answers

intl-tel-input hidden values not getting submitted through form

I have implemented intl-tel-input like this var ppvar; function primaryPhoneDisplay(assignedName){ let countryPhoneNumer = document.querySelector(`input[name="${assignedName}"]`); ppvar = window.intlTelInput(countryPhoneNumer,…
Nithin
  • 1,387
  • 4
  • 19
  • 48
0
votes
1 answer

How to auto populate preferredCountries from intl-tel-input with db output

I would like to populate the preferredCountries:["xx","yy","zz"] with a function that fetches the most used country codes from a mysql db and list them highest first and at least with a count of 4 I have a site with bootstrap4 and datatables and…
Stgr
  • 15
  • 3
0
votes
1 answer

Validation phone number with country code using intlTelInput

I am trying to validate phone numbers with intl-tel-input as shown https://intl-tel-input.com/node_modules/intl-tel-input/examples/gen/is-valid-number.html Here is my code var telInput = $("#phone"), errorMsg = $("#error-msg"), validMsg =…
0
votes
1 answer

add validation when we enter wrong phone number using intl-tel-input angular 4

I am using intl-tel-input angular 4 for validate phone number ,when I added this its showing country code with phone number but if enter wrong phone its not showing error message. For this I am using this code :-
0
votes
0 answers

Getting national phone number instead of international with jQuery plugin intl-tel-input

I am using the intl-tel-input jQuery plugin in a Rails application. The input field works nicely, but upon submit, the submitted phone number is in its national form and not in its international form. The "utils" script is included (using the asset…
DannyB
  • 12,810
  • 5
  • 55
  • 65
0
votes
1 answer

How to programmatically reset jQuery plugin 'intl-tel-input' to default placeholder

When using int-tel-input jQuery plugin, one sometimes needs to reset the placeholder to default. Is there a method like : $('input').intlTelInput('setPlaceholder', 'myDefaultPlaceholder' ); which should be called after…
0
votes
1 answer

Getting country code through form in php . intl-tel

Hi there I need help in getting the value of the country code in a PHP variable. I am using a Jquery plugin named "International Telephone Input". Here is my input and scripts.
user7671954
0
votes
2 answers

Cant get data from intlTelInput

Im trying to get extension from intlTelInput plugin on submit, but for some reason it returns empty. Here is an example: https://jsfiddle.net/msfk6top/ And the code:
user1985273
  • 1,817
  • 15
  • 50
  • 85
0
votes
2 answers

intl-tel-input dropdown not working on mobile browser

I am using intl-tel-input library for international telephone dropdown selection. When opening the app on web browser, country flags are coming as expected with proper styling, but it comes like above screenshot in mobile browser. I have added the…
Anand Gupta
  • 5,640
  • 3
  • 27
  • 37
0
votes
1 answer

Populate and edit seleted country code and flag on details page after creation using jQuery intl-tel-input plugin

I am using intl-tel-input jQuery plugin for phone number fields on new entity creation. Now I have a details form where I can view all entered details for newly created entity. How do I populate selected country code and flag on phone fields there?…
0
votes
3 answers

Bootstrap 4 + Intl-Tel-Input Workaround

I am trying to use the intl-tel-input with bootstrap 4. However, I am not able to see the placeholder for the input at all. I tried almost all the solution available on the net on this matter but unfortunately, none worked. This is my HTML
Kamil Kamili
  • 1,757
  • 5
  • 24
  • 39