2021.2

Table Of Contents
Get submitted data via Workflow
Eventually, when a user submits a Capture OnTheGo Form, the data are received by the
Workflow HTTP Server Input task (see Workflow Help: HTTP Server Input) that has the same
HTTP action as the one specified in the Form's action (see "COTG Forms" on page571). The
Workflow configuration should then handle the submitted data. But even if it doesn't, when no
other tasks are present in that Workflow configuration, Workflow can output an XML file that
contains the submitted data and save it in a location specified for the Send To Folder plugin in
Workflow.
This XML file contains the actual data submitted by all Form elements, including COTG
elements, such as a signature or barcode.
Using the COTG plugin
A Capture OnTheGo (COTG) Form may contain special COTG input elements, like a
Signature, Geolocation, or Camera element. These elements do not function without the COTG
JavaScript library. It is this library that links the controls with hardware features on the mobile
device.
The COTG JavaScript library offers options and custom events for COTG widgets to support
event-based programming in Capture OnTheGo Forms. For example: your code can
automatically set a date for a Date field and retrieve the Geolocation as soon as a form has
been signed.
All available options and events are listed in the Capture OnTheGo API: "Capture OnTheGo
API" on page622.
Note
Options and custom events were not available in the cotg-1.x.js versions of the library.
They have been introduction in version 2.0.0 with Connect 1.8.
With OL Connect 2021.1 the COTG library has been updated to version 2.1.0 to support
nested fields tables in COTG Fields Table elements. This also fixed an issue with the
COTG Camera Widget that occurred when it was used in a COTG Fields Table.
This topic explains in detail how to add the COTG plugin, how to change the defaults for COTG
widgets and how to use events.
How to add COTG elements to a Form dynamically is explained in another topic: "Dynamically
adding COTG widgets" on page611.
Page 608