2022.2

Table Of Contents
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.
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.
Tip: IfyouhavestartedcreatingyourCaptureOnTheGotemplateusingaCOTGTemplateWiz-
ard,youcanfindready-madeelementsintheSnippetsfolderontheResourcespane.
Foundation,theframeworkaddedbytheCOTGtemplatewizards,comeswithaseriesoffeaturesthat
canbeveryusefulinCOTGforms;see"UsingFoundation"onpage528.
Naturally,WebFormelementscanalsobeusedonCOTGForms(see"Forms"onpage640and"Form
Elements"onpage644)aswellastext,imagesandotherelements(see"Contentelements"on
page566).
CaptureOnTheGotemplatescanbepersonalizedjustlikeanyothertypeoftemplate;see"Per-
sonalizingcontent"onpage708.
Tip: UsetheOutlinepaneatthelefttoseewhichelementsarepresentinthetemplateandto
selectanelement.
UsetheAttributespaneattherighttoseethecurrentelement'sID,classandsomeotherprop-
erties.
UsetheStylespanenexttotheAttributespanetoseewhichstylesareappliedtothecurrently
selectedelement.
Page 426