Most Interaction flows contain multiple variable types. The input for these variables can come from many different sources, such as data from user input questions, responses from Integration Points, or results of internal calculations in the Interaction.

Each variable has a specific data type (e.g., text, number, date, and so on). Every data type can have several different display formats. For example:

  • A number can be displayed with or without a decimal point
  • A date can be shown in long or short format
  • A number representing an amount of currency can be displayed together with the relevant currency symbol

The Format feature of the Interaction Designer lets you define the required formatting for a data type, so the output of the variable will be displayed to your customers in the proper format (e.g., with the correct currency symbol).

Note: When special formatting is defined for a data type, the formatting specified appears only when the variable is displayed on an Interaction page (e.g, in a Paragraph element). The defined format is not displayed during data input (for example, while the user is answering a input question).

Using the Format Feature

When creating a variable of the type Number, Date, or Text (or a collection of one of these simple types), the Format parameters are enabled. For example:

The type of formatting options available vary according to the variable type. The following sections explain the different formatting options for specific data types.

Formatting Number Data Types

Number formatting options include the following settings:

SettingDescription/Notes
Decimal Places Allows you to specify how many decimal places will be shown.
Locale Select the required locale from the dropdown list. The format of the separators in the number (for thousands and decimal points) are displayed according to the custom in the selected locale.
Show thousands separator This checkbox determines whether or not thousands separators are displayed (e.g., 1,000 vs. 1000).
Position Allows you to enter the symbol associated with the currency used in the selected locale.

In addition, the Symbol field lets you enter the symbol associated with the currency used in the selected locale.



Formatting Date Data Types

Date formatting options allow you to select from the following date formats:

  • Short Date: Presents a short format with the day of the month displayed first, e.g., 15/10/2016.
  • Long Date: Presents a format with the month spelled out, e.g., October 15, 2016.
  • US Date: Presents a short format with the month displayed first, e.g., 10/15/2016.
  • Custom: Allows you to configure a display format of your choice. For example, MM/dd/yy

Note: Before working with date formatting, verify that the initial value of the variable is set in US Date format (e.g., 11/24/2016). 

Formatting Text Data Types

The text formatting option enables you to set a pattern for the text input so the text will be displayed to customers in a familiar format. For example, the following formatting is the pattern for a telephone number:

Revision:

Comments