Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

...

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.

...