2022.1

Table Of Contents
Event Description
state.cotg
restore-
state.cotg
Restores the state of the widget when the form is reopened in the COTG
app, after the app has restored previously entered values of static input
fields.
The Camera broadcasts the following events.
Event Description
clear.cotg Fired after the user has clicked the Clear button.
set.cotg Fired after the user has taken or selected a picture.
Date and Formatted Date
cotgDatePicker()
Initializing a Date or Formatted Date element prepares it for user interaction.
Example: $('myDatePicker').cotgDatePicker();
Note that the difference between a Date and a Formatted Date is laid down in the HTML
structure of the element.
Events
The Date and Formatted Date elements listen for the following custom events.
Event Description
clear.cotg Removes the date.
set.cotg
Sets the given date. The date should be given as a Date object, for
example:
$("#date").trigger("set.cotg", new Date()); // set current date
Page 656