2022.2

Table Of Contents
JavaScriptresourcesincludedinaPrintsectionareexecutedonthePreviewtab.(TheeditorforaPrint
sectiondoesnothaveaLivetab.)
Note: Theinternalbrowserenginewhichisusedasofversion2018.2,Gecko38,iscompliant
withtheECMAScript5languagespecification.
ThismeansthatscriptsusingfeaturesdescribedinECMAScript2015(akaES6)-suchasthe
keywordlet-willfailinthePreviewandLivetaboftheDesigner.
Nevertheless,theyshouldworkfinewhenprocessedbya(modern)clientbrowser.(Seefor
examplethebrowsercompatibilitytableatthebottomoftheMozilladocumentationfor"let":Moz-
illadocumentation.)
Capture OnTheGo
WiththeDesigneryoucancreateCaptureOnTheGotemplates.COTGtemplatesareusedtogenerate
formsfortheCaptureOnTheGomobileapplication.Formoreinformationabouttheapplicationreferto
thesewebsites:CaptureOnTheGoandCaptureOnTheGointheResourceCenter.
COTG Forms
ACaptureOnTheGoFormisactuallyjustaWebFormthathasanumberofcharacteristicfeatures:
l
ItsactionalwaysspecifiesaWorkflowHTTPServerInputtask,sothatwhentheFormissub-
mitted,theformdataissenttotheWorkflowserver.(See:"Specifyinganaction"onthenext
page.)
l
ItmaycontainspecialCOTG Input elements,likeaSignature,Geolocation,orCameraelement.
TheserequiretheCOTGJavaScriptlibrarytobeaddedtothetemplate.Thishappensauto-
maticallywhentheFormiscreatedwithaCOTGTemplateWizard.
l
Thankstothemobileapp,itmaybeusedoffline.TheappwillsubmittheFormdatawhenacon-
nectiontotheinternetisavailable.Justmakesure,iftheFormusesremotelystoredstylesheets
orJavaScriptfiles,thattheoption'UsecachedCaptureOnTheGoresource'isenabledwhen
addingtheresourcestothetemplate.Thispreventsthattheapptriestodownloadafileagain
thathasalreadybeendownloaded.
l
Itmaybereusable.ThisdependsonasettingintheOutputtoCaptureOnTheGoplug-in(found
ontheConnectorstab)inWorkflow(seetheWorkflowHelp:OutputtoCaptureOnTheGo).A
reusableCOTGFormisnotdeletedfromtheapp'sformlibrarywhenitissubmitted,soitcanbe
usedagain.
Creating a COTG Form
ACaptureOnTheGoFormisactuallyjustaWebForm,soyoucouldaddaFormelementtoaWeb
pageintheWebcontextwithouttheuseofaTemplateWizard.Itisstronglyrecommendedhowever,to
starttheCOTGTemplateusingoneoftheCOTGTemplateWizards.Theyallincludetheappropriate
Page 516