2021.2

Table Of Contents
OnTheGo form elements. For more information about the application refer to these websites:
Capture OnTheGo and Capture OnTheGo in the Resource Center.
Capture OnTheGo (COTG) elements can only be added within a Form element in a Web
context; see "COTG Forms" on page571. For information about how to add and use COTG
Elements, see "Using COTG Elements" on page596.
It is also possible to add COTG Elements dynamically, to set defaults for COTG elements and
to react to custom events that occur when a user interacts with a COTG element. For more
information see: "Using the COTG plugin" on page608 and "Dynamically adding COTG
widgets" on page611.
Barcode Scanner
The Barcode Scanner element adds a button to trigger the device to scan a barcode. A very
large variety of barcode types are supported. Once the barcode has been scanned, the data
from the barcode will be added to the COTG Form and submitted along with it.
Note
Using the Barcode Scanner element requires the installation of the ZXing Barcode
Scanner application on Android devices. The application returns the barcode data after
scanning.
Camera
The Camera element adds a group of buttons to capture or select an image. Once the image is
selected via the camera or the device's library (aka "gallery"), it is saved within the Form data.
When the form is submitted, the image is sent in a base64-encoded string format. To learn how
to add Camera data to a template, see "Adding Camera data to the template" on page577.
The Camera element has a number of options, of which most can be set in the Design view.
These options are described below.
All options, including options that cannot be set via the Design view, can be set via the Source
view or in code; see "Changing default settings for widgets" on page609.
Buttons
By default, the Camera element adds three buttons to the form:
Page 590