2022.2

Table Of Contents
l
Colors:ClickthecoloredsquaretoopentheColorPickerdialog(see"ColorPicker"on
page878)andpickacolor,orenteravalidhexadecimalcolorcode(seew3school'scolor
picker)forthepagebackgroundcolor.
Dothesameforthebackgroundcolorofthenavigationbaratthetopandforthebuttonson
theForm.
4. ClickNexttogotothenextsettingspageifthereisone.
5. ClickFinishtocreatethetemplate.
TheWizardcreates:
l
AWeb contextwithonewebpagetemplate(alsocalledasection)init.Thewebpagecontains
an'off-canvas'Divelement,Header,aSectionandaFooterelementwithdummytext,and
dependingonthetypeofwebpage,anavigationbar,buttonand/orFormelements.
l
Style sheetsandJavaScript filesrelatedtotheCOTGformitselfandothersrelatedtothe
Foundationframework(seeabove).ThestylesheetscanbefoundintheStylesheetsfolderon
theResourcespane.TheJavaScriptfilesarelocatedintheJavaScriptfolderontheResources
pane.
l
AcollectionofsnippetsintheSnippetsfolderontheResourcespane.Thesnippetscontain
ready-to-usepartstobuildthewebform.Double-clicktoopenthem.See"Snippets"onpage661
and"Loadingasnippetviaascript"onpage831forinformationaboutusingSnippets.
TheWizardopenstheWebsection,sothatyoucanfilltheCaptureOnTheGoform.
6. Makesuretosettheactionandmethodoftheform:selecttheformandthenentertheactionand
methodontheAttributespane.
TheactionofaCaptureOnTheGoformshouldspecifytheWorkflowHTTPServerInputtaskthat
receivesandhandlesthesubmitteddata.Theactionwilllooklikethis:http://127.0.0.1:8080/action
(8080isWorkflow'sdefaultportnumber;'action'shouldbereplacedbytheHTTPactionofthatpar-
ticularHTTPServerInputtask).
ThemethodofaCaptureOnTheGoformshouldbePOSTtoensurethatitdoesn'thitadatalimitwhen
submittingtheform.TheGETmethodaddsthedatatotheURL,andthelengthofaURLislimitedto
2048characters.EspeciallyformscontainingoneormoreCamerainputsmayproduceavoluminous
datastreamthatdoesn'tfitintheURL.GETalsoleavesdatatrailsinlogfiles,whichraisesprivacycon-
cerns.ThereforePOSTisthepreferredmethodtouse.
FillingaCOTGtemplate
BeforeinsertingelementsinaCOTGForm,havethedesignready;see"DesigningaCOTGTemplate"
onpage522.
Page 527