2022.1

Table Of Contents
Note
If the COTG app is unable to submit the data, you may have to change your network
setup or remove the built-in restrictions in Windows 10 that prevent applications from
sending data to the same computer. See "Installing the project" on page151.
Project details
The templates
The form
The COTG Timesheet Form template contains a Web context with one Web section: Section
1 (see "Web pages" on page580 and "Forms" on page751). The form has regular Form
elements as well as COTG elements (see "Form Elements" on page755 and "COTG
Elements" on page743).
The template was started with the Time Sheet Wizard (see "Capture OnTheGo template
wizards" on page612), which also provides the necessary JavaScript files and style sheets.
Most of the scripts are simple Text Scripts (see "Using the Text Script Wizard" on page849).
They put data in one of the form's fields, selecting the field by its ID.
Tip
Hover over the name of a script in the Scripts pane to highlight parts of the template that
are affected by the script.
l The guid script adds data to the guid field. This is a hidden field. It is only visible in the
Source view.
l The result of the form action script is added to the form's action attribute. To see how
that is done, double-click the script; then click Options.
l The Year script puts the current year in the footer of the page. This is a custom script. For
more information about writing scripts, see: "Writing your own scripts" on page918.
Page 153