1.8

Table Of Contents
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: cotg-2.0.0.js" on page442 and "Dynamically adding
COTG widgets" on page445.
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 (see the table below). 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.
Supported barcodes
Which barcodes are supported depends on the operating system of the device, (and, on iOS,
possibly also on the actual version of the system).
Barcode Type iOS Android, Windows
Aztec Code x x
Codabar x
Code 39 x x
Code 93 x x
Code 128 x x
Data Matrix x x
EAN_8 x x
Page 424