What is an Input Mask?
An "input mask" is a character that controls the input of data into a field. An input mask can contain literally displayed characters (such as brackets, dots, spaces, and hyphens, etc.) and mask characters.
Input mask
Right!
- Chinese name
- Input mask
- Definition
- Characters that control data entry into fields
- Include
- Characters displayed literally, etc.
- Mainly used
- Text and date fields
- An "input mask" is a character that controls the input of data into a field. An input mask can contain literally displayed characters (such as brackets, dots, spaces, and hyphens, etc.) and mask characters.
- Input masks are used primarily for text and date fields, but can also be used for numeric and currency fields. For example, set the input mask for the "date of birth" field to "**** year ** month ** day". Each "*" is called "
- The meaning of the characters used in the input mask attribute is as follows:
- 0: Must enter numbers (0-9), plus + and minus-are not allowed.
- 9: You can choose to enter numbers or spaces. Plus and minus signs are not allowed.
- #: You can choose to enter numbers or spaces, plus and minus signs are allowed, and blanks will be converted to spaces.
- L: The letters (A-Z) must be entered.
- ?: You can choose to enter letters (A-Z), you can enter without spaces or enter spaces.
- A: You must enter letters or numbers.
- a: You can choose to enter letters or numbers, you can enter no spaces or enter spaces.
- &: You must enter any character or space.
- C: You can choose to enter any character or space.
- <: All characters after it are converted to lower case.
- >: All characters after it are converted to uppercase.
- !: Display the input mask from right to left.
- \ (Backslash): Makes the characters after it appear as literal characters.
- Password: Any characters entered in the text box are saved as literal characters, but are displayed as asterisks *.