2018.1

Table Of Contents
Field Description
draw.cotg
Draws the signature on the form (e.g. after a set.cotg or restore-state.cotg
event).
restore-
state.cotg
Called when the form is reopened in the COTG app, after the app has
restored previously entered values of static input fields.
save-
state.cotg
Saves the signature data to the local storage of the COTG app.
set.cotg Sets the given signature. The signature should be given as an SVG string, for
example:
$(#signature).trigger(set.cotg, <svg></svg>);
The Signature element broadcasts the following events.
Field Description
set.cotg
This event is fired after a user has entered a signature and clicked the Done
button of the Signature window on the device.
clear.cotg Fired after a user has clicked the Done button of the Signature window
without entering a signature.
draw.cotg
Fired each time the signature is drawn on the form (by the app, not by the
user; e.g. after a set.cotg or restore-state.cotg event).
Time and Formatted Time
cotgTimePicker()
Initializing a new (Formatted) Time element prepares it for user interaction.
Example: $('#myTimePicker').cotgTimePicker();
Note that the difference between a Time and a Formatted Time is laid down in the HTML
structure of the element.
Page 520