2022.2

Table Of Contents
l
Thenameofthedatafieldappearsinthetemplate,enclosedindoublecurlybraces:{{data field
name}}.Thisiscalledanexpression.
Example: Hello{{FirstName}}!
Note: IfthedatafieldisofthetypeHTML String,theexpressiongetsthreecurlybrackets
toensurethattheoutputisinterpretedasHTML.Inexpressionswithdoublecurlybraces,
charactersthathaveaspecialmeaninginHTMLareescaped,e.g."&"iswrittenoutas
"&".(Seealso:"HTMLvalues"onpage329.)
Note: Doesaplaceholderappearinsteadofanexpression?Placeholderslooklikethis:
@FieldName@.ThishappensbydefaultwhenatemplatewasmadewithanOLConnect
versionpriorto2022.2.
Tomakethesoftwareinsertexpressionsinsteadofplaceholders,right-clickthesectionin
theResourcespane,selectPropertiesandchecktheoptionEvaluate Handlebars
expressions.
See"Variabledataintext:scriptsandplaceholders"onpage311foranexplanationofhow
placeholderswork.
l
Dependingonthedatatypeofthedraggedfield,afunctionthatformatsthevaluemaybeadded
totheexpressionautomatically.Forexample,draggingacurrencyfieldwillproduce:{{currency
FieldName}}whichoutputsanumberformattedasanamountofmoney.
Example: Theamountdueis{{currencyTotal}}.
Youcanremovethefunctionorchangeit(see"FormatHelpers"onpage334).
Toseetheexpressionreplacedwiththevalueofthedatafieldinthecurrentrecord,switchtothePre-
viewmodebyclickingthePreviewtabatthebottomoftheworkspace.Thevaluewillberefreshed
whenyoubrowsethroughtherecordsintheDataModelpane.
Thesamehappenswhentheoutput(theletter,email,etc.)isgenerated.Witheachrecord,expressions
thatholdthenameofadatafieldgetreplacedwiththevalueofthatdatafield.
Note: WhetherexpressionsinaMasterPageareevaluatedwhenoutputisgenerated,depends
onthePrintsectionthattheMasterPageisusedwith.See"Printsectionproperties"on
page485.
Page 309