SOLVED

Phone Number Field is not formatted as a phone number

Go to solution
Chris_Morris1
Level 4

Phone Number Field is not formatted as a phone number

We are using several Marketo forms, created with our Spark version of Marketo.

On each of the forms, the phone number field allows up to 200+ characters. It's not required that the digits entered equal the standard phone number. In some cases the validation is standard, or custom, with this code attributed to the field:

     Must be a phone number. <span class='mktoErrorDetail'>503-555-1212</span>

But I don't see a difference in either form in the way phone number data is collected. Any advice is appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
John_Clark1
Level 10

Re: Phone Number Field is not formatted as a phone number

Hi Chris,

You can change this by changing the input type of the field to text, and then changing the mask length and masking the input.  Masking only works for text type inputs, but don't worry, you can still force the value to be numbers.

pastedImage_0.png

View solution in original post

2 REPLIES 2
John_Clark1
Level 10

Re: Phone Number Field is not formatted as a phone number

Hi Chris,

You can change this by changing the input type of the field to text, and then changing the mask length and masking the input.  Masking only works for text type inputs, but don't worry, you can still force the value to be numbers.

pastedImage_0.png

Chris_Morris1
Level 4

Re: Phone Number Field is not formatted as a phone number

Thank you for your explanation! I did find a mention of the Mask field elsewhere, but your details helped me implement this little work around. Thank you so much!