2022.1

Table Of Contents
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630.)
Nested tables - i.e. Fields Tables used within a Fields Table - are supported as of version
2021.1. They follow the same naming pattern, for example: level1[row_0][level2][row_1]
[name].
Geolocation
The Geolocation Element adds a button to read the device's current GPS coordinates and save
them in a form field. When the button is pressed, the GPS coordinates are requested and
saved. When the form is submitted, the Geolocation data is sent in plain text.
High accuracy
By default, devices attempt to retrieve a position using network-based methods. To tell the
framework to use more accurate methods, such as satellite positioning, the High Accuracy
setting has to be enabled on the Geolocation element.
To make this setting, right-click the Geolocation element (or select it on the Outline pane) after
adding it to the form, select Geolocation properties and check the High Accuracy option.
Note
The Geolocation element has several options, of which only one can be set via the user
interface. All options, including those that cannot be set in Design view, can be set via the
data-params attribute in the HTML, or in code; see "Using the COTG plugin" on
page639.
Page 624