GraffitiSuite Docs
Docs
Graffitifieldmask
Loading document parsing libraries...
# GraffitiFieldMask Class Inherits GraffitiWebUIControl ## About Mask text entry controls to any format you wish, includes many built-in supported formats. ## Constants | Name | Type | Default Value | Description | | --- | :---: | :---: | --- | | Mask24HrTime | String | 99:99\?:99 | Suggested mask. | | MaskCAZipCode | String | a9a 9a9 | Suggested mask. | | MaskCreditCard | String | 9999 9999 9999 99\?99 | Suggested mask. | | MaskDate | String | 99/99/9999 | Suggested mask. | | MaskDateDashed | String | 9999-99-99 | Suggested mask. | | MaskDEPostCode | String | 99999\?-99999 | Suggested mask. | | MaskPhone | String | (999) 999-9999 | Suggested mask. | | MaskPhoneExt | String | (999) 999-9999\? x99999 | Suggested mask. | | MaskPhoneWithCountry | String | +999 (999) 999-9999 | Suggested mask. | | MaskSSN | String | 999-99-9999 | Suggested mask. | | MaskTaxID | String | 99-9999999 | Suggested mask. | | MaskUKPostCode | String | **** *** | Suggested mask. | | MaskUSZipCode | String | 99999\?-9999 | Suggested mask. | ## Event Definitions | Name | Parameters | Return Type | Description | | --- | :---: | :---: | --- | | MaskComplete | TheField as WebTextField | (None) | This event is fired when one of the controls that GraffitiWebFieldMask is bound to has had its mask completed by the user. | | Open | (None) | (None) | (None) | ## Methods | Name | Parameters | Return Type | Description | | --- | :---: | :---: | --- | | MaskField | FieldToMask as WebTextField <br> MaskFormat as String | (None) | Applies the supplied mask and CueText to the specified field. MaskFormat may use a user-specified format or one of the included constants. | | UnmaskField | MaskedField as WebTextField | (None) | Removes the masker from the field. | ## Properties | Name | Type | Default Value | Description | | --- | :---: | :---: | --- | | Placeholder | String | "_" | Placeholder text when the field has no value. |