2020.2

Table Of Contents
$('#cameras').append(html); // add the camera object to the DOM
$('#' + cameraID).cotgPhotoWidget(); // init COTG widget
Using submitted COTG data in a template
When a user submits a Capture OnTheGo Form, the Workflow process that receives the data
may store the information in a database and/or push it into other Workflow processes. It could,
for example, send a letter or an email receipt that is personalized with the submitted data. That
letter or email would need to be produced using a template that incorporates the submitted
data.
Follow these steps to develop a template that uses submitted COTG data.
1.
Get sample data
First, you need to get a sample of the submitted data. There are two ways to do this:
l
Using the option Get Job Data File on Submit in Connect Designer; see "Testing a
Capture OnTheGo Template" on page580. This way you don't have to create a
Workflow configuration first. Once the Job Data File is received by the Connect
server, a dialog appears asking where to store it.
l
Using a Workflow configuration. When a user submits a Capture OnTheGo Form,
the data are received by a Server Input task (see Workflow Help: HTTP Server
Input) that receives and handles the submitted data. Add a Send To Folder plugin to
the same process. Workflow will then output the XML file that contains the submitted
data in the location specified for the Send To Folder plugin. No other tasks are
needed in the process, or in the Workflow configuration.
Note
When user of the COTG app clicks or touches the Submit button in a Form, the name
and value of form elements are submitted. Normally, the name and value of an
unchecked Checkbox or Radio Button would not be submitted, but in Connect, they
are. Connect uses the workaround described in the following topic: "Getting the
status of unchecked checkboxes and radio buttons" on page580.
The Form's validation should ensure that the data that the user submits is valid (see
"Changing a Form's validation method" on page700 and "How to make COTG
elements required" on page577).
Page 598