Input mask

In computer programming, an input mask refers to a string expression, defined by a developer, that constrains user input.[1] It can be said to be a template, or set format that entered data must conform to, ensuring data integrity by preventing transcription errors. The syntax of this string expression differs between implementations, but the fundamental input types are all supported. The requirement specified by an input mask (for example, a date format) can also be enforced as an output mask (for example, governing how output will be presented to the user when several stylings are viable options).

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; e.g., a maximum of 45 characters. 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.

References

  1. ^ Klimczak, Erik (2013). Design for software : a playbook for developers. Chichester, West Sussex: Wiley. ISBN 9781119943709. OCLC 841169700.

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.