Re: Set Field Restrictions

Anonymous
Not applicable

Set Field Restrictions

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
SanfordWhiteman
Level 10 - Community Moderator

Re: Set Field Restrictions

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

Anonymous
Not applicable

Re: Set Field Restrictions

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

Re: Set Field Restrictions

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

Re: Set Field Restrictions

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

Anonymous
Not applicable

Re: Set Field Restrictions

Thank you, that seems to have worked.


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