SOLVED

Need help with Marketo form field validation for mobile numbers

Go to solution
nelson6726
Level 1

Need help with Marketo form field validation for mobile numbers

Hi there,

I have some issues with my Marketo field form and would like to discuss them with you all.

Not sure if anyone of you knows how to limit the mobile number to 8 digits only in the mobile number field there?

Appreciate your sharing on this!

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Need help with Marketo form field validation for mobile numbers


Sharing  JSFiddle for the same as well - http://jsfiddle.net/43Rmm/


That’s not so helpful because it requires the user to know how to directly update the DOM element using JS. Not difficult for a developer but also not necessary here.

 

The better answer is to use an input mask, a built-in feature.

View solution in original post

2 REPLIES 2
Jasbir_Kaur
Level 5

Re: Need help with Marketo form field validation for mobile numbers

Hi @nelson6726 

 

You can refer this link - https://stackoverflow.com/questions/19445408/how-to-restrict-user-to-type-10-digit-numbers-in-input-....

 

Sharing  JSFiddle for the same as well - http://jsfiddle.net/43Rmm/

 

Let me know in case of any concerns.

 

Thanks!

Jasbir

SanfordWhiteman
Level 10 - Community Moderator

Re: Need help with Marketo form field validation for mobile numbers


Sharing  JSFiddle for the same as well - http://jsfiddle.net/43Rmm/


That’s not so helpful because it requires the user to know how to directly update the DOM element using JS. Not difficult for a developer but also not necessary here.

 

The better answer is to use an input mask, a built-in feature.