Include a Newline Character In a Text String

To include a newline character in attribute text, you can use the NewLine function. The text after the newline character will be placed on a new line. This allows descriptive multi-line attribute values to be set appropriately, for example, when formatting text that will be placed into an incident thread or similar.

The newline character is honored in:

  • multi-line text box controls
  • Analytics Publisher for display in generated documents
  • data integration

Note that in the Data and Decision views in the Debugger, newlines are shown as slashes (for example, "Name: Pari / DOB: 1970-10-08").

The syntax for using the NewLine function is:

  • NewLine()

For example:

the incident thread text = "Name: " + the person's name + NewLine() + "DOB: " + the person's date of birth

In an interview, the incident thread text would render in a multi-line text box like this:

A multi-line text box in an interview which shows an attribute value containing a newline