The Masked Text Field replaces a regular
text field in a form, and allows the developer enforce a specific format
for the entered data. When displayed in the browser, the text field looks
no different from a regular one, the difference being related to the behavior
only:
![]()
In the example above, the masked text field has been configured to accept
only input conforming to the PIN format (e.g. 1234). If you enter anything
other than a character matching the mask, (e.g. for this example, a letter,
or another sign), the character will be automatically deleted; if you
enter a wrong character three times in a row, a visual display of the
format you must enter will be displayed aside the text field:
![]()
This text will automatically disappear when the correct format is entered.
Also, if in the defined mask, separating characters exist, they will be automatically entered by the script.
The controls are created using Java Script, and thus, they work only
if a browser with Java Script support is used. If the browser does not
have Java Script, the text field will behave like a normal one, with no
enhancements at all.