2022.2

Table Of Contents
Event Description
clear.cotg
Removesthedate.
set.cotg
Setsthegivendate.ThedateshouldbegivenasaDateobject,forexample:
$("#date").trigger("set.cotg", new Date()); // set current date
show-date-pick-
er.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()
InitializingaDeviceInfoelementputsinformationaboutthedevice(phoneortablet)thatdisplaysthe
form,inthehiddeninputoftheelement.
Example: $('#myDeviceInfo').cotgDeviceInfo();
Events
TheDeviceInfoelementlistens forthefollowingevent.
Event Description
clear.cotg Removes the Device Info data.
TheDeviceInfoelementbroadcaststhefollowingevent.
Event Description
set.cotg
Thiseventisfiredduringinitializationoftheelement,aftersettingitsinfotothecurrentdevice.
DocumentID
cotgDocumentId()
InitializinganewDocumentIDputsthecurrentDocumentIDinthehiddeninputoftheelement.
Example: $('#myDocID').cotgDocumentId();
Events
TheDocumentIDelementlistens forthefollowingevent.
Page 560