Skip to main content
Level 2
Feb 11, 2021 12:56 PM UTC
Solved

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!

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
User Group Leader
Feb 11, 2021 6:40 PM UTC

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

 

4 replies

SanfordWhiteman
User Group Leader
SanfordWhitemanUser Group LeaderAccepted solution
User Group Leader
Feb 11, 2021 6:40 PM UTC

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

 

Translate
Level 2
Feb 17, 2021 8:09 AM UTC

Thanks a lot, this worked fine. 

Translate
Ana Kvesic
Diane_LoBiondo2
Level 1
Dec 2, 2021 6:54 PM UTC

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

 

Translate