1.4

Locale can be the system's locale, a specific locale, or it can depend on the value of a data field; see
"Locale" on page 421.
Forms
Web templates can contain Form elements. Capture OnTheGo templates always contain a
Form element.
Tip
To create a Capture OnTheGo template, preferably use a Template Wizard; see "Capture OnTheGo
(COTG) templates" on page 436. The Wizard not only adds the form, but also the necessary
Capture OnTheGo form elements, styles and JavaScript files.
Adding a Form
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 "Forms" above).
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 325) and styling (see "Styling templates with
CSS files" on page 399).
4.
In the Action field, enter the URL where the form data should be sent. The URL should
be a server-side script that can accept form data. The action of a Capture OnTheGo form
should specify the Workflow HTTP Server Input task that receives and handles the
submitted data. The action will look like this: http://127.0.0.1:8080/action (8080 is
Workflow's default port number; 'action' should be replaced by the HTTP action of that
particular HTTP Server Input task).
The method of a Capture OnTheGo form should be POST to ensure that it doesn't hit a
data limit when submitting the form. The GET method adds the data to the URL, and the
length of a URL is limited to 2048 characters.
Page 269