2022.2

Table Of Contents
1. OpentheemailsectionandexpandtheEmailFieldsbyclickingEmail Fieldsatthetopofthe
section.
2. TypethesubjectintheSubjectfield.
Toaddvariable datatothesubjectofanemailsection,drag and dropadatafieldintotheSubject
fieldatthetopoftheworkspace.Twothingswillhappen:
l
Aplaceholderforthedatafieldappearsinthesubjectline(forexample:@email@).
l
Anewscript,namedSubject,isaddedtotheScriptspane.
Youcanaddasmanydatafieldstothesubjectasyoulike.Whenyoudoaddmorethanonedatafield,
theexistingSubjectscriptwillbemodifiedtoincludealldatafieldsthatareaddedtothesubject.
TheresultofthescriptwillbevisibleintheSubjectfieldinPreviewmode:clickthePreviewtabatthe
bottomoftheworkspace.
Note: Bydefault,theSubjectscripttargetsoneemailsectionspecifically.Youcanseethiswhen
youdouble-clickthescriptontheScriptspane.TheselectoroftheSubjectscriptcontainsthe
nameofaparticularemailsection,forexample:html.HTML_EMAIL[section="Content"](inthis
case,Contentisthenameoftheemailsection).Ifyouremovethe[section=...]partfromthe
selector,thescriptwillworkforallemailsections.
Subjectscriptsmadewithversionsofthesoftwarepriortoversion1.7arenotspecifictoone
emailsection.
Writing a custom Subject script
Thedefaultscriptreplacesall@field@placeholdersinthesubjectlinewithfieldvalues.Thisscriptcan
bemodified,forexampletocreateasubjectthatdependsonthevalueofadatafield.OpentheScript
Wizard(see"TheEmailScriptWizard"onpage162),clicktheExpandbuttonandmodifythescript.
Ifyoudon'tknowhowtowriteascript,see"Writingyourownscripts"onpage368first.
Note: ASubjectscriptcreatedbyclickingSubjectintheEmailFieldsalwaystargetsoneemail
sectionspecifically,forexample:html[section="Content"](inthiscase,Contentisthenameof
theemailsection).Removethe[section=...]partfromtheselectorofthescripttomakethe
scriptworkforallemailsections.
Recipients:To,CCandBCC
TospecifyrecipientsforEmailoutput,youcansimplydrag and dropadatafieldthatcontainsanemail
addressintotheTofieldatthetopoftheworkspace.Anewscript,namedTo,willbeaddedtothe
Scriptspane.
Page 164