Page tree
Skip to end of metadata
Go to start of metadata

This is the documentation for ConfiForms Server/Data Center app


Configuring text masks in ConfiForms

Text masks are generally configured using the following format: 00/00/0000, where 0 shows a place that will be replaced by actual value. Below, you can see some examples. Of course, you can construct your own.

What character can be used in a mask, and what character is accepted as input

  • 0 - [0-9*]
  • A - [a-zA-Z0-9]
  • S - [A-Za-z]
  • Y - [0-9]
MaskExampleComment
00/00/000023/12/2014used for dates
00.00.000023.12.2014used for dates
000.000.000.000.000,001.000,23used for money
00/00/0000 00:00:0023/12/2014 10:12:13used for date time
00/00/0000 00:00:0023/12/2014 10:12:13used for date time
##0,00%23%used for percent
AAA 000-S0Sxyz 456-e2fcomplex

Advanced

Another advance feature when you use masks (in 'Masked Text' field) is ability to configure it's type and teach it how the input can be converted when used with filters, for example.

Here is a basic example on how to use 'Masked Text' field and have it as a date type field.

  • Set Mask for your field like this: 00.00.0000
  • Set Type as Date
  • Set Pattern as follows: dd.MM.yyyy

Now the field's value can be converted to date and used as date value when querying, as pattern tells the field about back conversion.

Pattern uses the format used by Java's SimpleDateFormat (for dates) and DecimalFormat (for numbers)

  • No labels