When Should I Use a Custom Mask?
Masks in Droplet help ensure consistent, valid data entry. For instance, if you want a user to enter a specific number of digits (like a phone number) or strictly allow letters only (like a middle initial), custom masks let you define rules that enforce the exact format and type of characters entered.
Typically, you’d use a custom mask when:
In essence, a custom mask is your go-to tool when you want to control exactly how input gets typed.
Note: masks do not validate the field value, only restrict user input to guide them. To learn more about checking field values for accuracy, see this article on validation rules.
Numeric character placeholder (0-9)
Alphabetic character placeholder (A-Z, a-z)
Alpha-numeric placeholder (letters or digits)
Lowercase character placeholder
Uppercase character placeholder
Any character placeholder (a wildcard)
Certain characters appear exactly as typed — they are not placeholders. These can be letters, numbers, punctuation, parentheses, dashes, dots, etc.
Examples:
3, G,
-, (, ), ., :, /Lets you specify exactly which characters are allowed. Use square brackets to define your set.
a, b, c, d and digits 1, 2, 3 in a single slot.Specify exact or variable lengths using parentheses. You can do exact or min:max.
99 or 999).Exclude certain characters or sets with
!Cannot use the NOT operator with ranges or with the wildcard (for example, /!? is invalid).
XYZ, !!!, but not 123).Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article