2019.1

Table Of Contents
For more information about Post Pagination Scripts and their use, see "Post Pagination
Scripts" on page843.
Features that are specific to Control Scripts are listed in the "Post Pagination Script API" on
page1310.
Standard Script API
This page lists the global objects and functions that are available in Standard Scripts, created
inside the Scripts pane. Click through to an object or function to get a description and
examples.
Most of these objects and functions are also available in Control Scripts ("Control Scripts" on
page828) and Post Pagination Scripts ("Post Pagination Scripts" on page843).
For objects and functions restricted to Control Scripts see "Control Script API" on page1280,
and for the Post Pagination Script API see "Post Pagination Script API" on page1310.
The basics of script-writing in the Designer are explained in the following topic: "Writing your
own scripts" on page798.
Objects
Object Description
"results" on
page1314
This object is used to manipulate the content of the template. It contains the
HTML element or set of HTML elements that match the selector of the
script, specified in the script editor.
This object is not available in Control Scripts, because that type of script
doesn't have a selector (see "Control Scripts" on page828).
"record" on
page1222
The record in the main data set that is currently being merged. To get the
value of a field in the record, use record.fields['fieldname'] or
record.fields.fieldname.
"logger" on
page1221
Global object that allows you to log messages.
locale Defines which locale to use. (See "Locale" on page758.) Note that the
value is read-only.
Page 1218