Need help with Marketo form field validation for mobile numbers | Community
Skip to main content
New Participant
May 4, 2023
Solved

Need help with Marketo form field validation for mobile numbers

  • May 4, 2023
  • 1 reply
  • 1426 views

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!

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

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.

1 reply

New Participant
May 4, 2023

Hi @nelson6726 

 

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

 

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

 

Let me know in case of any concerns.

 

Thanks!

Jasbir

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
May 4, 2023

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.