Skip to main content
Level 3
May 18, 2022
Solved

Required field format

  • May 18, 2022
  • 2 replies
  • 1801 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

ChristianeRo1Community Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
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.

Jo_Pitts1
Community Advisor
Community Advisor
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