Jump to content

Input mask

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by ClueBot NG (talk | contribs) at 17:56, 4 March 2015 (Reverting possible vandalism by 12.208.4.162 to version by 63.139.70.140. False positive? Report it. Thanks, ClueBot NG. (2148284) (Bot)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In computer programming, an input mask refers to a string expression, defined by a developer, that governs what a user is allowed to enter in as input in a text box. It can be said to be a template, or set format that entered data must conform to, mainly used for the purposes of data integrity by preventing transcription errors. The syntax of this string expression differs from implementation to implementation, but the fundamental input types are all supported.

Some frequent uses of input masks include entry of telephone numbers, ZIP or postal codes, times and dates.

e.g. When entering into a text box a phone number on a data capture form, in the format "(111) 111 1111" the area code brackets, the space between the number and the area code will automatically be placed in.

Generally speaking, an input mask is a user generated set of rules, so if say: only allows 45 characters, then the entry must stay up to or within 45 character, they cannot exceed this rules. This kind of string is useful in finding reports and healthcare files.

An example would be: LL00 00L this in detail shows what should be included.