Token Formatting

You can apply formatting to tokens so that the information that replaces them will automatically fit certain characteristics, such as a certain date format, percentage, currency, decimal, number of digits, or other formatting.

Most Laserfiche products (with the exception of Workflow and Quick Fields) use ICU formatting to format date, time, and number tokens:

In Workflow and Quick Fields, the Token Dialog will help you insert and test token formatting. Use .NET formatting to format tokens in these products:

Syntax

The standard for formatting a token is %(token#"expression"#), where token is the name of the token and expression is a formatting expression. Laserfiche Connector has a slightly different syntax that requires a semi-colon to separate the token name and the formatting option: %(token;expression),

Example: Sally wants to format the token for the field in "Code" in Workflow to always have four digits. She changes the Code token so it reads %(Code#"D4"#). If 23 is inserted in a token with this format, the result will be 0023.

Example: John wants to format the token for the field "Date" in Workflow to use the full month name and four-digit year. He changes the Date token so it reads %(Date#"MMMM, yyyy"#). If 07/04/15 is inserted into a token with this format, the result will be July, 2015.

Note: The regional settings such as date and currency are Windows regional settings found in the Control Panel for the computer.