2021.2

Table Of Contents
o
A placeholder for the value of the data field shows up in the text. It looks as follows:
@FIELDNAME@.
o
A script appears in the Scripts pane at the bottom left.
The script replaces the placeholders in the content with the value of a data field in the current
record.
Switch to the Preview tab at the bottom of the workspace to see the script in operation. The
value of the corresponding data field in the first record appears instead of the placeholder,
everywhere where the placeholder is found in the text. This value will be refreshed when you
browse through the records in the Data Model pane.
When the output (the letter, email, etc.) is generated, the text script executes for each record in
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 what a script looks for in the
template. By default the drag-and-drop method wraps the placeholder text in a Span. (Select
the placeholder and switch to the Source tab to see the Span element.) The Span's class is
used as selector. Note that any spaces that occur in a data field name will be removed from the
script selector.
When you drag the same field from the Data Model 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.
You could also drag a script with an ID and/or class selector from the Scripts pane into the
template to insert an additional placeholder.
Tip
Press the CTRL key while dragging to wrap the placeholder in an absolute positioned
box (a div) at the cursor position. Each placeholder inside the box - there can be multiple
if you drag multiple fields - is wrapped in a Span, and each Span gets its own class.
This method is particularly useful when the document mainly consists of a PDF used as
Page 807