2022.1

Table Of Contents
'<div class="panel" role="control-wrapper"
style="position:relative;">' +
'<img role="photo" src="">' +
'<input role="photo-data" class="camera-dyn" name="' + cameraID +
'" type="hidden" value="' + value + '">' +
'</div>' +
'<button class="small" role="take-button" type="button">Take
now</button>' +
'<button class="small" role="pick-button"
type="button">Library</button>' +
'<button class="small" role="clear-button"
type="button">Clear</button>' +
'</div></label>';
$('#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632. 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
or NodeJS 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.
Page 650