2021.2

Table Of Contents
JavaScript resources included in a Print section are executed on the Preview tab. (The editor
for a Print section does not have a Live tab.)
Note
The internal browser engine which is used as of version 2018.2, Gecko 38, is compliant
with the ECMAScript 5 language specification.
This means that scripts using features described in ECMAScript 2015 (aka ES6) - such
as the keyword let - will fail in the Preview and Live tab of the Designer.
Nevertheless, they should work fine when processed by a (modern) client browser. (See
for example the browser compatibility table at the bottom of the Mozilla documentation for
"let": Mozilla documentation.)
Capture OnTheGo
With the Designer you can create Capture OnTheGo templates. COTG templates are used to
generate forms for the Capture OnTheGo mobile application. For more information about the
application refer to these websites: Capture OnTheGo and Capture OnTheGo in the Resource
Center.
COTG Forms
A Capture OnTheGo Form is actually just a Web Form that has a number of characteristic
features:
l Its action always specifies a Workflow HTTP Server Input task, so that when the Form is
submitted, the form data is sent to the Workflow server. (See: "Specifying an action" on
the facing page.)
l It may contain special COTG Input elements, like a Signature, Geolocation, or Camera
element. These require the COTG JavaScript library to be added to the template. This
happens automatically when the Form is created with a COTG Template Wizard.
l Thanks to the mobile app, it may be used offline. The app will submit the Form data when
a connection to the internet is available. Just make sure, if the Form uses remotely stored
style sheets or JavaScript files, that the option 'Use cached Capture OnTheGo resource'
is enabled when adding the resources to the template. This prevents that the app tries to
download a file again that has already been downloaded.
Page 571