# Using country code field for phone number

**URL:** <https://community.hubspot.com/t/using-country-code-field-for-phone-number/37300>\
**Category:** Lead Capture Tools\
**Tags:** forms\
**Created:** [May 13, 2021, 10:52pm UTC](https://community.hubspot.com/t/using-country-code-field-for-phone-number/37300 "2021-05-13T22:52:29Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aaron\_Bolshaw](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/aaron_bolshaw/32/102437_2.png) [@Aaron\_Bolshaw](https://community.hubspot.com/u/Aaron_Bolshaw)\
**Post date:** [May 13, 2021, 10:52pm UTC](https://community.hubspot.com/t/using-country-code-field-for-phone-number/37300/1 "2021-05-13T22:52:29Z")

</div>

Does anyone have any helpful advice/tips for migrating to using the country code dropdown for the phone field on forms? We’re going to be switching at some point and I was hoping for any insights. Thanks!

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [May 14, 2021, 5:39am UTC](https://community.hubspot.com/t/using-country-code-field-for-phone-number/37300/2 "2021-05-14T05:39:24Z")

</div>

Hi [@Aaron\_Bolshaw](https://community.hubspot.com/t5/user/viewprofilepage/user-id/144936),

Which concerns do you have exactly? You should be able to switch from the non-country code version of the field to the country code version easily:

![karstenkoehler_0-1620970676992.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/5/d/5d14c5895a61741f04cd4d39716e8a8dda562435.png)

In your form, simply click on the _Phone number_ field, wait for the left sidebar to open and enable this toggle at the bottom of the sidebar.

This will encourage your website visitors to pick a country code but it shouldn’t affect your processes (unless I’m missing context).

Best regards!

---

<div class="post-metadata">

**Author:** ![Dhiraj7688](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dhiraj7688/32/102118_2.png) [@Dhiraj7688](https://community.hubspot.com/u/Dhiraj7688)\
**Post date:** [March 24, 2022, 8:33am UTC](https://community.hubspot.com/t/using-country-code-field-for-phone-number/37300/3 "2022-03-24T08:33:53Z")

</div>

Can we use that country code data to automatically fill country name?

---

<div class="post-metadata">

**Author:** ![ahmetfirat](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ahmetfirat/32/64565_2.png) [@ahmetfirat](https://community.hubspot.com/u/ahmetfirat)\
**Post date:** [April 10, 2022, 3:21pm UTC](https://community.hubspot.com/t/using-country-code-field-for-phone-number/37300/4 "2022-04-10T15:21:22Z")

</div>

Can we show dr-down menu at the “phone” propert which we add to chatflow (we convert leads mostly from chatflows but users ussually doesnt add country code because they cant choose the country even though they can choose at forms. Thanks.

---

<div class="post-metadata">

**Author:** ![GetAdsHQ](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/getadshq/32/5798_2.png) [@GetAdsHQ](https://community.hubspot.com/u/GetAdsHQ)\
**Post date:** [December 14, 2023, 1:45am UTC](https://community.hubspot.com/t/using-country-code-field-for-phone-number/37300/5 "2023-12-14T01:45:08Z")

</div>

This option doesn’t show up on meeting/scheduling forms?

---

<div class="post-metadata">

**Author:** ![RBonasoro](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rbonasoro/32/86472_2.png) [@RBonasoro](https://community.hubspot.com/u/RBonasoro)\
**Post date:** [January 29, 2024, 8:38pm UTC](https://community.hubspot.com/t/using-country-code-field-for-phone-number/37300/6 "2024-01-29T20:38:13Z")

</div>

Is there a way to pick the default country code? I have a business that does not do business in the US, and that is the default. It could cause some questions.

---

<div class="post-metadata">

**Author:** ![mlcantin](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@mlcantin](https://community.hubspot.com/u/mlcantin)\
**Post date:** [February 5, 2025, 2:50pm UTC](https://community.hubspot.com/t/using-country-code-field-for-phone-number/37300/7 "2025-02-05T14:50:57Z")

</div>

I have the same question

---

<div class="post-metadata">

**Author:** ![KDekermenjian](https://avatars.discourse-cdn.com/v4/letter/k/3d9bf3/32.png) [@KDekermenjian](https://community.hubspot.com/u/KDekermenjian)\
**Post date:** [May 3, 2025, 4:18pm UTC](https://community.hubspot.com/t/using-country-code-field-for-phone-number/37300/8 "2025-05-03T16:18:38Z")

</div>

Hello Krasten.  
I can’t seem to find the toggle button.  
Can you assist?

---

<div class="post-metadata">

**Author:** ![Aaron\_Bolshaw](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/aaron_bolshaw/32/102437_2.png) [@Aaron\_Bolshaw](https://community.hubspot.com/u/Aaron_Bolshaw)\
**Post date:** [May 17, 2021, 11:37pm UTC](https://community.hubspot.com/t/using-country-code-field-for-phone-number/37300/9 "2021-05-17T23:37:01Z")

</div>

Thanks @karstenkoehler -- appreciate the input! yes, the setup appears easy, I’m more thinking of switching over from previously not using it. Any database considerations needed or suggested? Maybe auto-fill country by that country code, or similar?

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [May 18, 2021, 3:47am UTC](https://community.hubspot.com/t/using-country-code-field-for-phone-number/37300/10 "2021-05-18T03:47:41Z")

</div>

Hi [@Aaron\_Bolshaw](https://community.hubspot.com/t5/user/viewprofilepage/user-id/144936),

As far as the immediate change goes, you wouldn’t have to do anything. Visitors would self-select their country code which should result in a higher data quality.

For existing values in those phone number fields, you could clean them up via either [custom code in workflows](https://knowledge.hubspot.com/workflows/use-custom-code-actions-in-workflows), manual export and cleaning up in Excel, or [integrations like Incycle](https://www.insycle.com/hubspot/). Unfortunately there isn’t an out-of-the-box solution.

Best regards!

---

<div class="post-metadata">

**Author:** ![mlcantin](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@mlcantin](https://community.hubspot.com/u/mlcantin)\
**Post date:** [February 5, 2025, 2:53pm UTC](https://community.hubspot.com/t/using-country-code-field-for-phone-number/37300/11 "2025-02-05T14:53:25Z")

</div>

Hi there, Is it still true for the new editor? I don’t see that option. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Aaron\_Bolshaw](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/aaron_bolshaw/32/102437_2.png) [@Aaron\_Bolshaw](https://community.hubspot.com/u/Aaron_Bolshaw)\
**Post date:** [June 1, 2021, 11:42pm UTC](https://community.hubspot.com/t/using-country-code-field-for-phone-number/37300/12 "2021-06-01T23:42:56Z")

</div>

Thanks for your help. What I’ve learned is that we’re using workflows to automatically assign province/state in the address (for sales territory alignment), and we’re trying to understand how this migration will affect those. Since the country code phone number isn’t its own field in Hubspot data architecture, it’s not as easy as that seems.

---

<div class="post-metadata">

**Author:** ![ahmetfirat](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ahmetfirat/32/64565_2.png) [@ahmetfirat](https://community.hubspot.com/u/ahmetfirat)\
**Post date:** [March 26, 2022, 1:47pm UTC](https://community.hubspot.com/t/using-country-code-field-for-phone-number/37300/13 "2022-03-26T13:47:03Z")

</div>

Can we use also “country code” feature at the “phone” field which we embed at our chatflows? We convert most of our leads with chatflows but since there is no “country code” function at “phone” field at chat, we ussually get incorrect numbers. Thanks.
