• Confluence is currently running with all non-system plugins disabled, some functionality may be missing
Child pages
  • Text masks and masked input

This is the documentation for ConfiForms Server/Data Center app

However, this might also work for ConfiForms cloud and in most cases it does. But please see this page to understand the differences between server and cloud versions of the ConfiForms 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