APIs & Integrations

Nitsan
Colaborador(a)

Update country based on country code (phone number form field)

Hi,

 

Our forms contain both country and phone number fields with country code dropdown (the default dropdown field contains countries names) and it feels like the user needs to fill out his country twice.

 

Currently Hubspot doesn't have any solution for this and update the country property based on the country code (phone number form field), but I wonder if there's any coded walkaround for this challenge someone already thought of and implemented.

 

Many thanks,

Nitsan

1 Resposta 1
Jaycee_Lewis
Gerente da Comunidade
Gerente da Comunidade

Update country based on country code (phone number form field)

Hey, @Nitsan 👋 Thanks for your question. I tried searching for an existing reply that would be a good fit, but didn't find one. 

 

My instinct is there is a JavaScript-based solution, but it may take some testing on your part. Maybe a script that listens for changes in the phone number field and updates the country field accordingly. 

 

You could make a simple test to listen for one specific country code and country in a form submission. 

If you get something up and running, please share what you did. I know it will help our community to see other folks' creative solutions.

 

Best,

Jaycee

 


HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates.
Learn More.


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !
0 Avaliação positiva