2019.2

Table Of Contents
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: cotg-2.0.0.js" on page605.
Image & Annotation
The Image & Annotation element is meant to be used with an image that needs input from the
user. When inserting an Image & Annotation element you have to select the image. The user
can simply click (or rather, touch) the image to bring up the annotation dialog. Annotations can
be made in a Marker (semi-transparent) or Pencil (solid) style, in different colors and with
different widths.
Annotations are submitted in SVG format by a hidden input. The name of that input is the ID of
the Image & Annotation element, followed by "-note-data", for example image_annotation1-
note-data.
Locale
The Locale Element does not have a UI element in the form. Inserting it adds a hidden input
field that will contain the device's set locale when the form is submitted. This data is sent in
plain text format and is available when processing the form data. The format is defined by the
device.
Repository ID
The Repository ID element retrieves the repository ID (read only) from the app based on the
currently logged on COTG user. You could put the Repository ID in a hidden input, so that
when the form is submitted, the Repository ID is submitted as well. This information can be
used on the server side to take specific actions, such as sending properly branded emails.
Page 710