2022.2

Table Of Contents
RepositoryID
cotgRepositoryId()
InitializinganewRepositoryIDputsthecurrentRepositoryIDinthehiddeninputofthiselement.The
RepositoryIDisbasedonthecurrentlyloggedonCOTGuser.
Example: $('#myRepID').cotgRepositoryId();
Events
TheRepositoryIDelementlistensforthefollowingcustomevents.
Event Description
clear.cotg Removes the Repositiory ID data.
TheRepositoryIDelementbroadcaststhefollowingevent.
Event Description
set.cotg
Thiseventisfiredduringinitializationoftheelement,aftersettingitsvaluetothecurrentRepositoryID.
Signature
cotgSignature()
InitializinganewSignatureelementpreparesitforuserinteraction.
Example: $('#mySignature').cotgSignature();
Events
TheSignatureelementlistensforthefollowingcustomevents.
Field Description
clear.cotg
Removesthesignaturedrawinganddata.
draw.cotg
Drawsthesignatureontheform(e.g.afteraset.cotgorrestore-state.cotgevent).
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.
Page 564