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.
Sure, you can perform any validation you want using JS. I think this exact question has been answered before if you search.
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!
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!
Make sure the field is set to Text in the Form editor.
Thank you, that seems to have worked.
However, it appears this will only accept USA phone numbers, correct? Not international?