2022.2

Table Of Contents
haveadifferent(orno)setofpasswords.
PasswordssetintheControlScriptoverridethepasswordsetthroughtheEmailPDFpasswordscript
(see"EmailPDFpassword"onpage488).Thisallowsyoutochangeorremovethepasswordfroma
specificpart.Removalisdonebysettingthepasswordfieldtonullor""(emptystring).
Note: WhenaControlScriptchangesthesizeofasection,itshouldalsochangethesizeofthe
linkedMedia;thisisnotdoneautomatically.Whiletheoutputmaystilllookgood,asizemismatch
cancauseanissueifascriptoranothercomponentassumesthatthemediasizematchesthe
sectionsize.
Incaseofasizemismatchapreflightwillshowawarning(see"DoingaPreflight"onpage818).
Functions
Note: Forclonedsections,functionsarenotavailable.
Function Description
"clone()"on
page1290
Clonethissection.See"Dynamicallyaddingsections(cloning)"onpage846.
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1345.
"html()"on
page1291
SetstheinitialHTMLofthebodyelement.
"paginate()"on
page1312
Post Pagination Scripts only.PaginatesthecontentofaPrintsection.
Examples
Conditionally skipping or printing Print sections
ThisscriptdisablesallPrintsectionsandthenre-enablesoneofthem,dependingonavalueinthecur-
rentrecord.
var printSections = merge.template.contexts.PRINT.sections;
printSections['Section EN'].enabled = false;
Page 1308