2021.2

Table Of Contents
Date and Formatted Date
The Date element and the Formatted Date element display the current date on the device when
the form is first opened. When the element is touched, a date selector appears so the user can
modify this date. The Formatted Date element displays dates in a format that depends on the
locale of the device on which the user is viewing the form. A Date Element displays dates in the
ISO 8601 format: YYYY-MM-DD.
When the form is submitted, the date data is sent as plain text. A Formatted Date element
submits the date in two formats: in the format that depends on the device's regional and
language settings and in the ISO format mentioned above (using a hidden field). A Date
element sends the date in the ISO format only.
Device Info
The Device Info Element adds a field that contains some information about the device (phone
or tablet) that is submitting the COTG Form. This includes the device's type (Android or iOS),
operating system version, device model and its UUID (Universally Unique Identifier). This
information can be useful for both troubleshooting, if errors occur on specific device types for
example, as well as for security validation: it is possible to maintain a list of device UUIDs that
are allowed access, to prevent unauthorized use even if someone has a user name and
password to a repository.
Document ID
The Document ID element retrieves the Document ID of the form currently viewed by the app.
You could put the Document ID in a hidden input, so that when the form is submitted, the
Document ID is submitted as well. A Document ID can be used on the server side to check (in
the Connect database) if the data has already been submitted.
Fields Table
The Fields Table element adds a table with two rows, a Delete button at the end of the first row
and an Add button at the end of the second row. Inside the rows you can put whatever elements
you need. The user can click (or rather, touch) the Add button to add a row to the table. The
new row will contain the same elements as the first row.
The names of all elements in the first row will be extended with __0, while the names of the
elements in the second row will be extended with __1, etc. (This means that the submitted data
can be grouped; see "Grouping data using arrays" on page599.)
Nested tables - i.e. Fields Tables used within a Fields Table - are supported as of version
Page 593