Is there a way to natively set the minimum character limit for a text or number field in a form? I want to set a field to exactly 12 characters and have an error message appear if a lead enters anything less than 12 characters. If not, is there a javascript that anyone has used to accomplish this?
Thanks in advance!
Since I am looking for a minimum and maximum of 12 numeric values, I used 999999999999 (12). When I test a live form, I am still able to submit the form with less than 12 numbers.
Post a link to that form.
Here you go: AWS Activate
There's no mask on the AWS Account ID field now.
When I go into the form it shows that there is mask input enabled:
Check the form and you'll see it isn't active. Maybe you didn't reapprove the LP.
If you move the Q to Products I'll answer there (should be a Move button at the right).
Moved ![]()
If you set the field to Text and use the Mask Input option (at the lower right in Form Editor), you can set the the pattern to
************
which is exactly 12 alphanumeric characters.
But.. if you want to do a minimum of 12 alphanumeric with some more.. you're out of luck. What are your thoughts on that Sanford?
Enhance the special characters:
MktoForms2.$.mask.definitions["_"] = "[A-Za-z0-9]?";
Then use this mask:
************_____
Where the underscores build out to the maximum length.