2020.1

Table Of Contents
A section can also be retrieved via merge.context.sections['section name']. Remember,
however, that when several contexts need to be merged (for example, when the Print context is
attached to an email), the script needs to check if the current context is of the type that contains
the desired section (for example: if (merge.context.type == ContextType.PRINT) {}). When
sections in different contexts have the same name, it is safer to use
merge.template.contexts.ContextType.sections["section name"].
Fields
Field Type Description
"background" on
page889
Background Print sections only. Used to set a PDF
background on a Print section. See "Control
Script: Setting a Print section's background"
on page420 and "BackgroundResource" on
page900.
enabled Boolean Enables or disables this section for output
(see "Examples" on page886). Note that
even if a Print section is disabled, the part
and restartPageNumber fields are still
effective to define the parts division and page
numbering over multiple sections when
applicable.
The default enabled state for sections (before
any control script runs) is as follows:
For Email channel requests on the Print
context all Print sections are enabled by
default. It is possible to enable different or
multiple sections to control which sections
will be attached to the email.
For Email channel requests, the requested
section is enabled by default. It is possible to
output another section by disabling the
requested section and enabling another
section.
For Print channel requests on the Print
Page 882