Masked Text Line Field Type - adamwojs/formatted-textline GitHub Wiki

Masked Text Line Field Type is Field Type based on Formatted Text Line Type which allows to define value format as mask.

Supported placeholders

The following characters are interpreted as placeholders as long there are not preceded by escape sequance (\).

Placeholder Description
0 Required digit (0-9)
9 Optional digit (0-9)
L Required letter
? Optional letter
A Required letter or digit
a Optional letter or digit
C Required character (any non-control character)
c Optional character (any non-control character)
H Required hexadecimal digit
h Optional hexadecimal digit

Example masks

Mask Description
00:00:00 Time
#HHHHHH Hex color
AAA-0009 Example SKU

References