SOLVED

Re: Phone Number Format

Go to solution
Ana_Kvesic
Level 1

Phone Number Format

Hi guys, 

Is it possible to format the number in the following way:

  • All phone numbers must start with +
  • The first number after + cannot be 0 (valid numbers are from 1 to 9)
  • There must be at least one number after the first number
  • All other symbols are invalid
  • Example of the valid number: +1234567 and +12345678

I am aware of the mask input and I know I can put +99999999, the problem is that not all phone numbers have the same number of characters, and with mask input, if I put +99999999 it will accept only 9 characters. So, mask input won't work for me.

Thanks!

 

Ana Kvesic
1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Phone Number Format

4 REPLIES 4
SanfordWhiteman
Level 10 - Community Moderator

Re: Phone Number Format

Read my posts on advanced Forms 2.0 input masks. You can create a more complex pattern.

 

Ana_Kvesic
Level 1

Re: Phone Number Format

Thanks a lot, this worked fine. 

Ana Kvesic
Diane_LoBiondo2
Level 1

Re: Phone Number Format

@SanfordWhiteman 

 

It is possible to create a script token in Marketo that pulls in ONLY the last four digits of a person's phone number? 

 

SanfordWhiteman
Level 10 - Community Moderator

Re: Phone Number Format

Absolutely, but can you please open another thread for this?