Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Table of Contents
This function allows control of user input on text controls. Placeholders are created and the defined masked enforces conventions.
( mask ) The defined input convention ( placeholder ) Optional placeholder character. Default is "_".
Mask convention is enforced through the following predefined placeholders:
- a - represents an alpha character (A-Z, a-z)
- 9 - represents a numeric character (0-9)
- * - represents an alphanumeric character (A-Z,a-z,0-9)
spec['Date'].mask('99/99/9999'); spec['Cost'].mask('$99.99'); spec['Phone'].mask('999.999.9999 x9999', "*"); spec['SSN'].mask('999-999-9999', '#');