2019.2

Table Of Contents
Function Description
"Examples"
on
page1376
Clone this section. See "Dynamically adding sections (cloning)" on
page895.
addAfter() Add a cloned section after this section.
addBefore() Add a cloned section before this section.
addHeader
(key, value)
Email sections only. Used to set custom email headers. The function
expects a key and a value (both of type string). For examples, see "Adding
custom ESP handling instructions" on page1444.
"Examples"
on
page1378
Sets the initial HTML of the body element.
"paginate
()" on
page1404
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;
}
Page 1399