2022.1

Table Of Contents
Event Description
clear.cotg
Removes the Repositiory ID data.
The Repository ID element broadcasts the following event.
Event Description
set.cotg This event is fired during initialization of the element, after setting its value to
the current Repository ID.
Signature
cotgSignature()
Initializing a new Signature element prepares it for user interaction.
Example: $('#mySignature').cotgSignature();
Events
The Signature element listens for the following custom events.
Field Description
clear.cotg Removes the signature drawing and data.
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:
Page 662