2021.1

Table Of Contents
elements as well as COTG elements (see "Form Elements" on page712 and "COTG
Elements" on page700).
The template was started with the Time Sheet Wizard (see "Capture OnTheGo template
wizards" on page573), 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799).
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 page867.
The report
The COTG Timesheet Report template contains a Print context with one Print section:
Section 1 (see "Print sections" on page479) and one Master Page (see"Master Pages" on
page498).
Personalization is mostly done via simple text scripts. Such scripts look for a text surrounded
by @ (e.g. @city@) and replace that by the correct data. To add a text script you just drag-and-
drop data onto the template. (See: "Variable Data" on page796.)
The template also contains a dynamic table which is filled and expanded dynamically by the
scripts in the Table folder. To learn how to insert and edit such a table, see "Dynamic Table" on
page816.
Note that this table does not use one of the default table styles, and that the style sheet with the
default table styles is not present in the template. To add that style sheet to the template, insert
a table using the Dynamic Table wizard.
Page 149