2022.2

Table Of Contents
Tip: Thesavedfilecanbeusedtocreateadatamappingconfiguration.
Projectdetails
The web templates
BothwebpagesaredesignedintheWEB_FORM Web Pagetemplate.ItcontainsaWeb contextwith
twoWebpages:formandthank_you(see"Webpages"onpage498).
Stylingisdoneviastyle sheets(see"Localformattingversusstylesheets"onpage671).Thestyle
rulesareinthecontext_web_styles.cssfile.NotethattheyusetheHTMLtag(e.g.section),ID(#theID)
and/ortheclass(.theclass)ofelementstoselectthem.(Seealso:"SelectorsinOLConnect"on
page825.)
Dynamiccontentisinsertedbyscripts,whicharelistedontheScriptspane.Youcandouble-clicka
scripttoopenit.
ThescriptsintheThank youfolderonlyaffectthethank_youWebpage;ontheformWebpage,noth-
ingmatchestheirselectors.
Tip: HoveroverthenameofascriptintheScriptspanetohighlightpartsofthetemplatethatare
affectedbythescript.
l
MostofthescriptsintheThank youfolderdirectlyinsertdatathatweresubmittedviatheWeb
form;see"Variabledataintext:scriptsandplaceholders"onpage726.
l
TheSnippetsscript(alsointheThankyoufolder)loadstwosnippets,dependingonthevalues
oftwodatafields(see"Loadingasnippetviaascript"onpage831).Notethatitselectsthetable,
inordertoinsertthesnippetafterthetable(viaresults.after();see"after()"onpage1242).
l
TheYearscriptputsthecurrentyearinthefooterofbothWebpages.
Formoreinformationaboutwritingscripts,see:"Writingyourownscripts"onpage808.
The Workflow configuration
Theproject'sWorkflowconfigurationcontainsjustoneprocess:anOLConnectWebprocess(see
"WebprocesseswithOLConnecttasks"onpage174).
ItsNodeJSServerInputtaskhastwoHTTP Actionentries:formandthank_you.Thismeansthepro-
cesswillbetriggeredwhentheserverreceivesarequestthatendswitheither/formor/thank_you.
TherequestissavedtoanXMLfile,whichbecomesthejobfile.
TheText Conditiontaskchecksiftherequest'sheaderisthank_you.(Forthefunctionthatisusedto
readtheheaderfromthejobfile,see:XMLdataselections.)
Ifitis,thetasksinthebranchrun.Thesubmitteddataaremergedwiththethank_youWebsectionand
Page 161