I was wondering if anybody knows of a way to create a string custom field but with limitations on the amount of characters to be 42. So when the person fills out the field they cannot enter less than or greater than 42 characters, it has to be exactly 42?
If one does not exist, does anybody know of a workaround that would accomplish the same task?
Thanks!
AH
If what you mean by "when a person fills out the field" is through a Marketo form, that's where you will need to put the validation. You cannot put this validation on the custom field in Marketo itself. There's plenty of ways to build custom form validation through javascript.
I was wondering if anybody knows of a way to create a string custom field but with limitations on the amount of characters to be 42. So when the person fills out the field they cannot enter less than or greater than 42 characters, it has to be exactly 42?
Yes — assuming you're talking about the field on a form (not updating the field via the Marketo UI, or any other method). And it doesn't even take any JS!
Use a Pattern Mask: