SilkRoad Logo Print topic
 

Previous Topic

Next Topic

Input masks on Text Input elements

An input mask controls the type of characters and formatting allowed in a field. In eForm Builder, you can set input masks for Text Input elements. You do this on the element's Edit Properties page.

Input mask

Description

9

Any number [0-9]

A

Any uppercase alphabet letter [A-Z]

a

Any lowercase alphabet letter [a-z]

@

Any alphabet letter (upper or lower case) [a-zA-Z]

*

Any single character

?

Optional character. It makes the previous pattern optional.

Other characters can be entered into a mask to group items.

Character

Purpose

/

Separates month, day, and year in a date

( )

Groups area/city codes in a phone number

-

Separates portions of a phone number

Mask examples

  • North American Phone Number: (999) 999-9999
  • French phone numbers: 99 99 99 99 99
  • UK Postal Codes: A**?*? 9AA
  • Currency: 9?9?9,999.99

    Tip: A currency mask like this works as long all the values are between 1,000.00 (1.000,00) and 999,999.99 (999.999.99). Placing a currency symbol to the left of the numbers forces an exact number of digits before the currency symbol displays.