SOLVED

Required field format

Go to solution
KaitlynNelson1
Level 3

Required field format

Wondering if it's possible to have a string field have a required format? For example, we want to have fields for product serial numbers with the format:

 

FOC2514L0VK

and MCN#'s with the format: 

MCN-37177843

 

Was hoping there was a way to ensure that a lead could not incorrectly submit information. 

 

Thanks! 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Christiane_Rode
Level 7 - Community Advisor + Adobe Champion

Re: Required field format

Have you explored Input Masking? It could get a little tricky if you're using the same field for both types of serial numbers, but that could be a good start.

View solution in original post

Jo_Pitts1
Level 10 - Community Advisor

Re: Required field format

@KaitlynNelson1 ,

Is this in a Marketo form?

If so, @Christiane_Rode's notion of masking might get you there.  If the format requirements are more advanced that the native Marketo masking can accomodate, it isn't hard to use a little JavaScript to validate the field and provide feedback on what info is required.

Cheers

Jo

 

View solution in original post

2 REPLIES 2
Christiane_Rode
Level 7 - Community Advisor + Adobe Champion

Re: Required field format

Have you explored Input Masking? It could get a little tricky if you're using the same field for both types of serial numbers, but that could be a good start.

Jo_Pitts1
Level 10 - Community Advisor

Re: Required field format

@KaitlynNelson1 ,

Is this in a Marketo form?

If so, @Christiane_Rode's notion of masking might get you there.  If the format requirements are more advanced that the native Marketo masking can accomodate, it isn't hard to use a little JavaScript to validate the field and provide feedback on what info is required.

Cheers

Jo