2021.2

Table Of Contents
Event Description
example:
$("#date").trigger("set.cotg", new Date()); // set current date
show-date-
picker.cotg
Opens the Date picker. Optionally, you can provide a date (as a Date
object) for the Date picker to be opened with, for example:
$('#date1').trigger("show-date-picker.cotg", new
Date("2018-01-01"));
Device Info
cotgDeviceInfo()
Initializing a Device Info element puts information about the device (phone or tablet) that
displays the form, in the hidden input of the element.
Example: $('#myDeviceInfo').cotgDeviceInfo();
Events
The Device Info element listens for the following event.
Event Description
clear.cotg
Removes the Device Info data.
The Device Info element broadcasts the following event.
Event Description
set.cotg This event is fired during initialization of the element, after setting its info to
the current device.
Document ID
cotgDocumentId()
Initializing a new Document ID puts the current Document ID in the hidden input of the element.
Example: $('#myDocID').cotgDocumentId();
Page 626