2022.2

Table Of Contents
JavaScriptfilesandstylesheetstocreateuser-friendly,responsiveforms;see"CaptureOnTheGotem-
platewizards"onpage525.
Tip: HavealookattheSampleProject:"SampleProject:COTGTimesheets"onpage141.This
wizardcreatesallpartsofasampleCOTGproject,includingtheform.
BeforestartingtocreateaCOTGForm,takesometimetostructurethedesignprocessandtogetfamil-
iarwiththeprinciplesofformdesign,asexplainedinthetopic"DesigningaCOTGTemplate"on
page522.
Reusableforms
CaptureOnTheGoformscanbesingle-useorreusable.Thisdoesn'tdependonthedesign(although,
ofcourse,thisshouldbereflectedinthedesign).WhatmakesaformreusableisasettingintheOutput
toCaptureOnTheGoplugininWorkflow;seeOutputtoCaptureOnTheGo.IntheCaptureOnTheGo
appareusableformiscalleda'template'.
Formsforofflineuse
CaptureOnTheGoformscanbeusedoffline.Thisisthecaseevenwhentheformreliesonremotely
storedsourcefileslikeJavaScriptfilesandstylesheets,providedthattheoptionUse cached Capture
OnTheGo resourceischeckedwhenaddingthemtotheform.
Specifyinganaction
TheactionoftheCaptureOnTheGoFormelementshouldspecifyaWorkflowHTTPServerInputtask
(seeWorkflowHelp:HTTPServerInput)thatreceivesandhandlesthesubmitteddata.Theactionwill
looksimiliartothis:http://192.168.175.1:8080/actionname(whereactionnameistheHTTPactionof
theHTTPServerInputtask).
ForinformationaboutspecifyinganactionforaForm,see"AddingaForm"onpage640or"Changing
aForm'sproperties"onpage642.
Note: Fortestingpurposes,itispossibletouseanotherURLfortheForm'sactionornottospe-
cifyanactionatall;see"TestingaCaptureOnTheGoTemplate"onpage541.
Filling a COTG template
BeforeinsertingelementsinaCOTGForm,havethedesignready;see"DesigningaCOTGTemplate"
onpage522.
InaCaptureOnTheGoform,youcanusespecialCaptureOnTheGoFormelements,suchasaSig-
natureandaBarcodeScannerelement.ForadescriptionofallCOTGelements,see:"COTGEle-
ments"onpage633.Tolearnhowtousethem,see"UsingCOTGElements"onpage536.
Page 517