Adding a Area Code Drop down to Phone Number Field | Community
Skip to main content
Mike_Guanci
Level 2
January 17, 2020
Solved

Adding a Area Code Drop down to Phone Number Field

  • January 17, 2020
  • 1 reply
  • 4391 views

Our EMEA team is asking us to look into adding a area code dropdown option to our phone number field on Marketo forms.  I was wondering if anyone else has done something like this in the past and how to best do it.  If not possible, what is the best way include area code for emea based phone numbers?  

Our phone number field isn't mandatory and I made the team aware even adding this functionality will result in people providing reliable numbers in a lot of cases. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

Add an Area Code field (String) to the db. Present it as a Select widget to the left of the Phone Number.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
January 17, 2020

Add an Area Code field (String) to the db. Present it as a Select widget to the left of the Phone Number.

Mike_Guanci
Level 2
January 17, 2020

Thank you Sanford, I will test this out!  I would assume I would need to add a step in the flow to merge the area code field and phone number into the phone number field via tokens when it syncs over to SFDC it would show 1+123... as the phone number?

SanfordWhiteman
Level 10
January 17, 2020

Yes, using Change Data Value in a flow will be easiest for you to execute.

It could also be done in JS on the form itself, but it's tricky to avoid it looking a tiny bit strange for the end user (otherwise they would see the Area Code "jump" over to the Phone Number box when they clicked submit, and even though it would be very quick, it's an effect that's best avoided).