Input masks allows a user to more easily enter fixed width input where you would like them to enter the data in a certain format (dates,phone numbers, etc). A mask is defined by a format made up of mask literals and mask definitions. Any character not in the definitions list below is considered a mask literal. Mask literals will be automatically entered for the user as they type and will not be able to be removed by the user. The following are the mask definitions:

  • 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)
  • ~ – Represents an alphanumeric character or symbol (A-Za-z0-9`~!@#$%^&*()_+-={}|\:’;?>

For example:
The mask of the social security number is “999-99-9999”. The user will see ___-__-____ and it will only be able to enter numbers in the blank spaces and will not be able to remove the dashes.

You can have part of your mask be optional. Anything listed after ‘?’ within the mask is considered optional user input. The common example for this is phone number + optional extension. e.g. “(999) 999-9999? x99999”

Need more help with this?
Customer Support

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.