SOLVED

Phone Number Field is not formatted as a phone number

Go to solution
Highlighted

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
Highlighted
Level 7

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
Highlighted
Level 7

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

Highlighted

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!