create free web forms, free email forms, free forms.
create web forms using formlogix free onlile form builder.
Create a Textbox Mask
Register to FormLogix
 
What is a mask?
A mask is a format which is applied to a textbox element and enables the form owner to collect
data in this specific format. The mask format is determined by mask characters and delimiters
which are used in a certain order. Once the mask is applied to the textbox the form filler will not
be able to enter data that is does not fit the format.

examples of masks:
Date - dd/mm/yyyy
Time - HH:MM:SS
A code - x-nnnnn
A phone number - nn-nnnnnn
 
characters and delimiters
A character represents specific data and is made out of one or more chars. for instance HH is
a character which is made out of 2 H chars and represents hour data.
A delimiter is a sign that separates between 2 characters. For example HH:MM -the colon sign
is a delimiter between the hour character and the minute character.

Following are the mask characters and delimiters:

characters
x- character for collecting alpha numeric data (using only lower case letters)
n- character for collecting only numeric data (using only lower case letters)
yyyy – character (made out of 4 chars) for collecting year data (using only lower case letters)
mm– character (made out of 2 chars) for collecting month data (using only lower case letters)
dd- character (made out of 2 chars) for collecting day data (using only lower case letters)
HH- character (made out of 2 chars) for collecting hour data (using only capital letters)
MM- character (made out of 2 chars) for collecting minute data (using only capital letters)
SS- character (made out of 2 chars) for collecting second data (using only capital letters)

Take Note!
Characters may only be used in the format specified above (for example the year character
may only be entered in 4 lower case letters: yyyy).
Only the x and n characters may consist of one or more chars (n or nn or nnn or nnnnnn etc).

Delimiters:
/ - used as a delimiter. For example: the date dd/mm/yyyy (27/11/2009)
: - used as a delimiter. For example: the time HH:MM:SS (12:32:45)
- used as a delimiter. For example: a phone number nn-nnnnnn (09-8871634 or 04-6543378)
 
How to Create a Mask
Steps to create a mask:
1- Drag a textbox element (in the form creator.
2- Go to the textbox's settings on the right.
3- Fill in the desired mask format.
4- Turn on the "mandatory" checkbox.
5- Press on "apply".
6- Save the form.

Take note!
the mandatory checkbox must be turned on in order for the mask to work and be validated.