2019.1

Table Of Contents
1. Open the Script Wizard: in the Scripts pane, double-click the script, or create a new Text
Script using the Text Script Wizard; see "Using the Text Script Wizard" on page325.
2. Click the data field that contains the numeric value that you want to display differently, or
add the data field to the script with the Add field button on the right.
3.
Under Format choose one of the following settings:
l
Custom Pattern: allows you to enter a custom format mask. For example, the
pattern 000000 means that the number should count six digits; leading zeros are
added to numbers shorter than six digits. For an overview of pattern symbols see
"Number patterns" on page807 and
http://docs.oracle.com/javase/7/docs/api/java/text/DecimalFormat.html. The custom
pattern will only work if the actual value of the field can be converted from a text to a
number.
l
Grouped displays a number with three decimal places and sets the thousands
separator for the value based on the current locale; see "Locale" on page309.
l
Currency displays a number as an amount of money, with a thousands separator
and rounded to two decimal places, based on the current locale; see "Locale" on
page309.
l
Currency no symbol does the same as Currency, but omits the currency symbol.
4. Close the Script Wizard. For a new script, don’t forget to add the selector to the template.
Showing content conditionally
One way to personalize content is to show or hide one or more elements depending on a field’s
value. For example, a paragraph written for Canadian customers could be hidden when the
recipient of the letter is not living in Canada, if that can be derived from the data.
The Conditional Script Wizard helps you to show or hide one element a paragraph, image or
other HTML element - based on the value of one or more data fields. For example, you could
check whether the data field 'State' is 'Equal To' the value 'British Columbia' or 'Québec', to
include a paragraph for all recipients in those states.
Showing or hiding elements using the Conditional Content Script wizard
1.
Right-click the element and click Make Conditional. Alternatively click the black triangle
on the New button on the Scripts pane at the bottom left of the window, and click
Conditional Content Script. The Conditional Content Script wizard opens.
Page 330