2022.2

Table Of Contents
mallydependonthelocale/regionsettingsonthemobiledevice.TheISOdateandtimeshouldbethe
sameaswhenusingtheCOTGapp.
Get submitted data via email
GettingsubmitteddataviaemailrequirestheForm'sactiontobesettoatestURLthatcontainsanAPI
Key.YoucanobtainanAPIKeyasfollows.
1. Gotohttp://learn.objectiflune.com/.
2. Createanaccount,orlogintoyouraccount.
3. GotoyourProfilePage,andclicktheAPIKeylink.
Now,whencreatingoreditingaCOTGForm,youcanusetheAPIKeyintheForm'saction:
1. SelecttheForm(see"Selectinganelement"onpage570).
2. OntheAttributespane,pastethefollowingURLintheactionfield:http://learn.ob-
jectiflune.com/services/cotg-debug?__ol__auth_key={{APIKEY}}.
3. Replace{{APIKEY}}byyourAPIKey.
WhenyousubmittheformintheCOTGapp(see"PreviewingaCOTGTemplateintheapp"on
page541),thedebugservicewillcomposeanHTMLemailthatcontainstheformelementnamesand
thesubmittedvalues.Imagefiles,likepicturesandsignatures,areaddedtotheemailasattachments.
TheemailwillbesenttotheemailaddressthatyouprovidedviayourLearnprofile.
Foramoredetaileddescriptionofthistestprocedure,seethishow-to:TestingaCOTGtemplate.
Get submitted data via Workflow
Eventually,whenausersubmitsaCaptureOnTheGoForm,thedataarereceivedbytheWorkflow
HTTPServerInputtask(seeWorkflowHelp:HTTPServerInput)thathasthesameHTTPactionasthe
onespecifiedintheForm'saction(see"COTGForms"onpage516).TheWorkflowconfiguration
shouldthenhandlethesubmitteddata.Butevenifitdoesn't,whennoothertasksarepresentinthat
Workflowconfiguration,WorkflowcanoutputanXMLfilethatcontainsthesubmitteddataandsaveitin
alocationspecifiedfortheSend To FolderplugininWorkflow.
ThisXMLfilecontainstheactualdatasubmittedbyallFormelements,includingCOTGelements,such
asasignatureorbarcode.
Using the COTG plugin
ACaptureOnTheGo(COTG)FormmaycontainspecialCOTGinputelements,likeaSignature,
Geolocation,orCameraelement.TheseelementsdonotfunctionwithouttheCOTG JavaScript lib-
rary.Itisthislibrarythatlinksthecontrolswithhardwarefeaturesonthemobiledevice.
Page 545