1.4

the record set, and each time it replaces the placeholders by the value of the field in the current
record.
In the Scripts pane you can see that the script has a name and a selector.
The drag-and-drop method automatically generates a script that is named after the data field
(see the first column of the Scripts pane).
The selector (in the second column in the Scripts pane) is the text that the script will replace.
The selector that the drag-and-drop method generates for a script, is the same as the
placeholder that is placed in the text.
When you drag the same field to the content again, a second placeholder appears in the text,
but no new script is added. The existing script will find and replace all placeholders that match
its selector.
Note
Looking for text in a text is a less optimized operation and may impact output speeds in
longer documents. To speed up the output process, you could use a different type of
selector. See "Using the Text Script Wizard" below for an explanation about the various
types of selectors.
Tip: press the Alt key while dragging, to wrap the placeholder in a span, give the span an
ID and have that ID used as the script's selector.
Using the Text Script Wizard
The Text Script Wizard can insert one or more data fields into your template, each with an
optional prefix and suffix. It is recommended to use the Text Script Wizard for blocks of data,
such as address blocks, and when data fields can be empty or need to be formatted differently.
1. Create a new text script and open the Text Script Wizard. There are two ways to do this:
l
On the Scripts pane at the bottom left, click the black triangle on the New button
and click New Text Script. A new script appears in the list. Double-click the new
script to open it.
l Select a word in the content. Right-click the selection and on the shortcut menu,
choose Text Script.
Page 338