jdubs edited this page Oct 23, 2016 · 1 revision

Table of Contents

Overview

This function allows control of user input on text controls. Placeholders are created and the defined masked enforces conventions.

Signature

mask(mask, [placeholder])

Parameters

( mask ) The defined input convention ( placeholder ) Optional placeholder character. Default is "_".

Additional Detail

Mask convention is enforced through the following predefined placeholders:

  • a - represents an alpha character (A-Z, a-z)
  • 9 - represents a numeric character (0-9)
  • * - represents an alphanumeric character (A-Z,a-z,0-9)

Example

spec['Date'].mask('99/99/9999');
spec['Cost'].mask('$99.99');
spec['Phone'].mask('999.999.9999 x9999', "*");
spec['SSN'].mask('999-999-9999', '#');

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.