Set Field Restrictions

Anonymous
Not applicable

I am trying to understand if there is a way to set a field restriction for certain fields on our forms.

For example: phone number

The field type is phone but is there a way to set a requirement that the person entering information has to do it in a certain format?

Thank you.

5 REPLIES 5
Anonymous
Not applicable

Christine,

You can use an input mask to do this.

Apply Input Masking to a Field in a Form - Marketo Docs - Product Docs

Hope that helps!

Anonymous
Not applicable

Hi Trent, thank you for this information.

However, when I follow the steps in the PDF to mask the input I don't have that option on my form.

Does something else have to be enabled?

Thank you!

SanfordWhiteman
Level 10 - Community Moderator

Make sure the field is set to Text in the Form editor.

Anonymous
Not applicable

Thank you, that seems to have worked.


However, it appears this will only accept USA phone numbers, correct?  Not international?

SanfordWhiteman
Level 10 - Community Moderator

Sure, you can perform any validation you want using JS. I think this exact question has been answered before if you search.