2019.1

Table Of Contents
Functions
Note
For cloned sections, functions are not available.
Function Description
"Examples" on
page1299
Clone this section. See "Dynamically adding sections (cloning)"
on page839.
addAfter()
Add a cloned section after this section.
addBefore()
Add a cloned section before this section.
"paginate()" on
page1327
Post Pagination Scripts only. Paginates the content of a Print
section.
Examples
Conditionally skipping or printing Print sections
This script disables all Print sections and then re-enables one of them, depending on a value in
the current record.
var printSections = merge.template.contexts.PRINT.sections;
printSections['Section EN'].enabled = false;
printSections['Section FR'].enabled = false;
if(record.fields.Language === 'FR'){
printSections['Section FR'].enabled = true;
} else {
printSections['Section EN'].enabled = true;
}
Selecting different sections for Print output and Email PDF attachment
This script selects a different Print section for output, depending on the output channel (Email or
Print).
Page 1291