2018.2

Table Of Contents
Event Description
set.cotg This event is fired during initialization of the element, after setting its info to the
current device.
Document ID
cotgDocumentId()
Initializing a new Document ID puts the current Document ID in the hidden input of the element.
Example: $('#myDocID').cotgDocumentId();
Events
The Document ID element listens for the following event.
Event Description
clear.cotg
Removes the Document ID.
The Document 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 Document ID.
Fields Table
The Fields Table element itself is just a table, so it doesn't have to be initialized. However, after
dynamically adding it to a Form, you still have to add the correct event handlers to the Add and
Delete buttons, as follows (replace myTable by the ID of your table):
$("#myTable [role=cotg-add-row-button]").on("click", function(){
$(this).closest('table').cotgAddRow(true);
});
$("myTable").on("click", "[role=cotg-delete-row-button]", function
Page 539