{"action":"created","issue":{"url":"https://api.github.com/repos/Bluefieldscom/intl-tel-input/issues/268","labels_url":"https://api.github.com/repos/Bluefieldscom/intl-tel-input/issues/268/labels{/name}","comments_url":"https://api.github.com/repos/Bluefieldscom/intl-tel-input/issues/268/comments","events_url":"https://api.github.com/repos/Bluefieldscom/intl-tel-input/issues/268/events","html_url":"https://github.com/Bluefieldscom/intl-tel-input/issues/268","id":101683027,"number":268,"title":"Use drop down as standalone field","user":{"login":"PierceMcGeough","id":3092809,"avatar_url":"https://avatars.githubusercontent.com/u/3092809?v=3","gravatar_id":"","url":"https://api.github.com/users/PierceMcGeough","html_url":"https://github.com/PierceMcGeough","followers_url":"https://api.github.com/users/PierceMcGeough/followers","following_url":"https://api.github.com/users/PierceMcGeough/following{/other_user}","gists_url":"https://api.github.com/users/PierceMcGeough/gists{/gist_id}","starred_url":"https://api.github.com/users/PierceMcGeough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PierceMcGeough/subscriptions","organizations_url":"https://api.github.com/users/PierceMcGeough/orgs","repos_url":"https://api.github.com/users/PierceMcGeough/repos","events_url":"https://api.github.com/users/PierceMcGeough/events{/privacy}","received_events_url":"https://api.github.com/users/PierceMcGeough/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Bluefieldscom/intl-tel-input/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-18T15:27:09Z","updated_at":"2015-08-19T08:25:48Z","closed_at":null,"body":"Is it possible to use the dropdown to populate a standalone prefix field?\r\n\r\nWe want to have mobile_prefix and mobile_number in the database. This seems the best solution.\r\n\r\nThe problem we have with the plugin currently is that a user would enter 075xxxxx we would want to store this as +4475xxx for sending SMS but throughout the system we want to display the national number 075xxx. However if we have stored it as +4475xxx it returns as such to the edit input.\r\n\r\nWould this feature be available or maybe it is already there and I missed it."},"comment":{"url":"https://api.github.com/repos/Bluefieldscom/intl-tel-input/issues/comments/132490313","html_url":"https://github.com/Bluefieldscom/intl-tel-input/issues/268#issuecomment-132490313","issue_url":"https://api.github.com/repos/Bluefieldscom/intl-tel-input/issues/268","id":132490313,"user":{"login":"PierceMcGeough","id":3092809,"avatar_url":"https://avatars.githubusercontent.com/u/3092809?v=3","gravatar_id":"","url":"https://api.github.com/users/PierceMcGeough","html_url":"https://github.com/PierceMcGeough","followers_url":"https://api.github.com/users/PierceMcGeough/followers","following_url":"https://api.github.com/users/PierceMcGeough/following{/other_user}","gists_url":"https://api.github.com/users/PierceMcGeough/gists{/gist_id}","starred_url":"https://api.github.com/users/PierceMcGeough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PierceMcGeough/subscriptions","organizations_url":"https://api.github.com/users/PierceMcGeough/orgs","repos_url":"https://api.github.com/users/PierceMcGeough/repos","events_url":"https://api.github.com/users/PierceMcGeough/events{/privacy}","received_events_url":"https://api.github.com/users/PierceMcGeough/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T08:25:48Z","updated_at":"2015-08-19T08:25:48Z","body":"Hi,\r\n\r\nYes it makes sense thanks although I cannot seem to get it working. This is my example.\r\n\r\n```\r\n$('#phone_mobile_display').intlTelInput({\r\n\t\tnationalMode: true,\r\n\t\tpreferredCountries: ['gb', 'ie'],\r\n\t\tutilsScript: \"/assets/plugins/intl-tel-input/lib/utils.js\"\r\n\t});\r\n```\r\n\r\nAdd a UK number of 07547786810 and using getCleanNumber it becomes +447547786810\r\n\r\nThen if I set the number `$('#phone_mobile_display').intlTelInput('setNumber', '+447547786810');` it still displays in the input/edit as +447547786810. If I under stand what you are saying I should be expecting 07547786810 to appear. Am I correct?"}}