2021.1

Table Of Contents
});
function addCameraWidget(cameraID, value) {
if(typeof value == 'undefined') {
value = '';
}
var html = '<label>Camera' +
'<div id="' + cameraID + '" role="cotg.PhotoWidget">' +
'<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593. 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.
Page 610