APIs & Integrations

Nitsan
Teilnehmer/-in

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 Antwort
Jaycee_Lewis
Community-Manager/-in
Community-Manager/-in

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

 


Join us on March 27th at 12 PM for the Digital Essentials Lab, an interactive session designed to redefine your digital strategy!
Engage with expert Jourdan Guyton to gain actionable insights, participate in live Q&A, and learn strategies to boost your business success.
Don't miss this opportunity to connect and grow—reserve your spot today!


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !
0 Upvotes