Phone Number Format | Community
Skip to main content
New Participant
February 11, 2021
Solved

Phone Number Format

  • February 11, 2021
  • 1 reply
  • 4846 views

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!

 

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

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

 

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
February 11, 2021

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

 

New Participant
February 17, 2021

Thanks a lot, this worked fine. 

Ana Kvesic
Diane_LoBiondo2
New Participant
December 2, 2021

@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?