Format a Field

You can apply formatting to a Field. For example, you can specify that the name of a Field should always be uppercase.

When you apply a standard function on the "Format a field" list to a Text Block in KCM ComposerUI, the applicable field value format is automatically refreshed to reflect your selection. This capability is relevant to the Content Wizard view, but not to the Forms view.
  1. Navigate to Content > Text Blocks.
  2. Click the Text Block to which a certain Field belongs and then click Edit in the View and Edit pane on the right.

    The Text Block Editor appears.

  3. Click the Field to format and click the F button on the toolbar.
  4. Select a formatting option, provide the values for the corresponding parameters (if any), and click Apply. You cannot apply more than one formatting option to a single Field.
    The following table lists and describes the available formatting options.

    Formatting option

    Tag after the Field name

    Output result

    None

    Not applicable

    Set by default. No formatting is applied.

    Upper case

    :upper

    The output text appears in uppercase letters.

    Lower case

    :lower

    The output text appears in lowercase letters.

    Capitalize first word

    :capital

    The first character of the output text starts with a capital letter.

    Date

    :date

    Converts a number into its date notation. The result is based on the current output language.

    Example

    20170620 results in 20 June 2017 (US English)

    Format date

    :formatdate

    Converts a number into a date formatted according to a specified mask that should not be empty. The result is based on the current output language. For more information on the format types allowed in the mask, see the "format_date" section of the Kofax Communications Manager Template Scripting Language Developer's Guide.

    Example

    20160606 with the Mask "dddd, MMMM d yyyy" results in Monday, June 6 2016 (US English)

    Numerals

    :numerals

    Rounds a number to zero decimal positions.

    Example

    123456.7 results in 123457 (US English)

    Amount

    :amount

    Converts a number into a notation representing an amount of currency. The placement of the decimal and comma separators depends on the current output language.

    The input value is rounded to cents.

    Example

    12345678.899 results in 12,345,678.90 (US English)

    Number

    :number

    Rounds a number to zero decimal positions. The placement of the decimal and comma separators depends on the current output language.

    Example

    123456.7 results in 123,457 (US English)

    Ordinal

    :ordinal

    Converts a number into the corresponding ordinal number. The result is shown based on the current output language.

    Example

    1 results in first (US English)

    Hyperlink

    :hyperlink

    Transforms a link to a web page into a hyperlink in the result document.

    This formatting option is not supported for Fields in Quick Templates.

    You may optionally specify one or all of the following parameters, which correspond to the Microsoft Word hyperlink parameters:

    In the Visible text box, type the text to display.

    In the Anchor box, type the anchor tag to jump to a specific section on the web page. For example, type #Sample to jump to the section called "Sample" on the web page.

    In the Frame box, type the name of the target frame: "Same frame," "Whole Page," 'New window," "Parent frame," depending on how you expect the page to open. By default, "Page Default (none)" is set. For more information, see the Microsoft documentation available on the Internet.

    In the Tooltip box, type the text to display when the user moves the pointer to the hyperlink.

    Condition

    :condition

    Adds a condition that determines how the output text is shown. For a sample procedure, see Add a condition to a Field.

    When formatting is applied to a Field, the name of the formatting appears after the name of the Field. For example, [CustomerAddress.City:upper] indicates that uppercase formatting has been applied.
  5. Click Save & Close.