2020.2

Table Of Contents
4.
Now type a dot after formatter, press Ctrl + space and choose one of the functions to
format a date and time; see "Date, date/time and time functions" on page1275.
Note
The Locale, set in the Edit > Locale dialog, has an influence on the formatting of a date.
The Locale can be the system's locale, a specific locale, or it can depend on the value of
a data field; see "Locale" on page768.
Forms
Web templates can contain Forms. Capture OnTheGo templates always contain a Form.
Tip
To create a Capture OnTheGo template, preferably use a Template Wizard (see "Capture
OnTheGo template wizards" on page560). The Wizard doesn't just add the form, it also
adds the necessary Capture OnTheGo form elements (see "COTG Elements" on
page689), style sheets and JavaScript files, and extra pre-made elements.
Adding a Form
This procedure describes how to add a Form element to an existing Web context.
1.
On the Resources pane, expand the Web context and double-click a Web page to open
it.
2.
To use the Form Wizard, select the Insert > Form Wizard menu option. The Form Wizard
adds a Form to the Web page including the specified fields.
Alternatively, you can select Insert > Form on the menu to open a dialog that lets you set
the Form's properties, validation method and location, but doesn't allow you to specify
fields. If you choose this method, skip step 8 and 9 of this procedure and add fields after
inserting the Form (see "Adding elements to a Form" on page540).
3.
Add an ID and/or a class. ID's and classes are particularly useful with regard to variable
data (see "Personalizing content" on page770) and styling (see "Styling templates with
CSS files" on page727).
Page 697