Set Field Restrictions | Community
Skip to main content
May 4, 2016
Question

Set Field Restrictions

  • May 4, 2016
  • 2 replies
  • 1488 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

SanfordWhiteman
Level 10
May 4, 2016

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

May 4, 2016

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!

May 6, 2016

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
May 6, 2016

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