2018.1

Table Of Contents
(attachments) may have a different (or no) set of passwords.
Passwords set in the Control Script override the password set through the Email PDF
password script (see "Email PDF password" on page433). This allows you to change or
remove the password from a specific part. Removal is done by setting the password field to null
or "" (empty string).
Functions
Note
For cloned sections, functions are not available.
Function Description
"Examples" on
page1093
Clone this section. See "Dynamically adding sections (cloning)"
on page721.
addAfter()
Add a cloned section after this section.
addBefore()
Add a cloned section before this 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;
}
Page 1087