Enumerations

Name Values
This class exposes no enumerations.

Constants

Name Type Value
Mask24HrTime String “99:99?:99”
MaskCAZipCode String “a9a 9a9”
MaskCreditCard String “9999 9999 9999 99?99”
MaskDate String “99/99/9999”
MaskDateDashed String “9999-99-99”
MaskDEPostCode String “99999?-99999”
MaskPhone String “(999) 999-9999”
MaskPhoneExt String “(999) 999-9999? x99999”
MaskPhoneWithCountry String “+999 (999) 999-9999”
MaskSSN String “999-99-9999”
MaskTaxID String “99-9999999”
MaskUKPostCode String ***”
MaskUSZipCode String “99999?-9999”

Events

Definition Description
MaskComplete( TheField as WebTextField ) This event is fired when one of the controls that GraffitiWebFieldMask is bound to has had its mask completed by the user.

Methods

Definition Description
MaskField( FieldToMask as WebTextField, MaskFormat as String ) Applies the supplied mask and CueText to the specified field. MaskFormat may use a user-specified format or one of the included constants.
Unmask( MaskedField as WebTextField ) Removes the previously applied mask.

Properties

Name Type Default Value Description
Placeholder String = “_” The character used to occupy empty spaces which must be filled by the user. This is used for display purposes.

Formatting

The Mask is a string, and there are several predefined masks in the form of constants (GraffitiWebFieldMask.MaskPhone).

Mask Definitions

Character Accepted Inputs
a Alpha character (a-z, A-Z)
9 Numeric character (0-9)
* Alphanumeric character (a-z, A-Z, 0-9)
? Anything after the question mark is considered optional, and the MaskComplete event will fire with or without that section being filled.

Examples

There are currently no examples for this class.