Comments (9)
By default, the autoHideDialCode option is true, which means if there is just a dial code in the input then when it loses focus (e.g. when it is submitted), it will automatically be emptied. The assumption is that no-one would ever want to submit just a dial code as their telephone number. If you want to allow this though, just set autoHideDialCode to false when you initialise the plugin.
from intl-tel-input.
Thanks for reply, but I already set the autoHideDialCode as false. Still the value was not setting up in value attribute in text field. But it showing in text field on UI.
from intl-tel-input.
Can you confirm that it works if you don't initialise the plugin, and you just type +91 in the input and submit the form?
from intl-tel-input.
Just tested, Yeah it posting the value without initialise the plugin, If we have option to post either +91 or IN (country code). If we have both option, it will be very useful.
Thanks
from intl-tel-input.
I can't reproduce this. Are you submitting the data in an ajax request? Can you please post all the relevant code?
from intl-tel-input.
I am not using ajax. I create the separate page to test with plugin code. It works. So I think something wrong in my code. nothing wrong with plugin. Thanks for your time to look at that.
Please consider to add this feature.
If we have option to post either +91 or IN (country code). If we have both option, it will be very useful.
Thanks
from intl-tel-input.
Can you please open a new issue for that feature request, and add more detail about how you would want it to work, and why it would be useful. Just so you know I'm only interested in adding new features if they will be useful to a lot of people.
from intl-tel-input.
this would be useful to me
from intl-tel-input.
Hi magsense, as I said before, please open a new issue for this, and add as much detail as possible.
from intl-tel-input.
Related Issues (20)
- preferredCountries not working HOT 1
- SetAttribute error HOT 3
- reference custom element in wiki HOT 1
- Deleting all characters from input results in console error HOT 4
- Disable alphabetic chars (etc) HOT 7
- Broken Search Broken module Broken all HOT 7
- Cursor pointer HOT 1
- intl-tel-input/19.2.5/img/flags.png 404 not found HOT 2
- When countrySearch: false, and you search for a country it does not scroll to it HOT 5
- Country Dropdown Hidden Mobile HOT 4
- Search country input on mobile browsers is not tapable HOT 6
- React version of intl-tel-input throws an error when unmounted HOT 2
- Format as you type nor working HOT 1
- There should be no 0 after the code in Türkiye number HOT 5
- Bug: `nationalMode` and `showSelectedDialCode` together HOT 6
- Initialization options: "i18n.countryListAriaLabel" has no effect HOT 2
- Search field not appearing within drop down HOT 4
- Uncaught Error: No country data for 'undefined HOT 23
- Send Country data to Hubspot HOT 1
- Not the correct mask for the country France HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from intl-tel-input.