2021.1

Table Of Contents
on page484).
Tip
Drag the data field directly to the Scripts pane to create a script without adding a
placeholder to the template.
Note
Connect versions older than 2020.2 used the placeholder text as the script's selector.
Looking for text in a text is a less optimized operation and may impact output speeds in
longer documents. For that reason placeholders are now by default wrapped in a Span
and the class of that Span is used as the script's selector.
If you would like the drag-and-drop method to behave like it did in older Connect
versions, you can change its behavior via the Preferences (Window > Preferences >
Editing), or hold the ALT key while dragging to change its behavior on the fly.
For more tips to make a template generate output faster, see "Optimizing scripts" on
page883.
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.
The Text Script Wizard appears.
2. Change the name of the script to make clear what it does.
Page 799