Required field format | Community
Skip to main content
New Participant
May 18, 2022
Solved

Required field format

  • May 18, 2022
  • 2 replies
  • 1786 views

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! 

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

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.

2 replies

Jo_Pitts1
Community Manager
May 18, 2022

@kaitlynnelson1 ,

Is this in a Marketo form?

If so, @christianero1'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

 

ChristianeRo1Accepted solution
Community Manager
May 18, 2022

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.