2022.1

Table Of Contents
Field Type Description
properties. (On the menu, select File >
Properties to view and complement the file
properties. See "File Properties dialog" on
page492).
Example
The following Control Script retrieves two Print sections. Then, depending on a value in the
current record, it enables one section or the other, so that only one of the two sections appears
in the output.
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;
}
properties
The properties object inside the template object (see "template" on the previous page)
contains all default properties of the template file as well as any custom properties.
To view and complement the file properties, select File > Properties on the menu. See "File
Properties dialog" on page492.
Following are the default properties.
Field Type Description
application String Application version when the document
was last saved
Page 947