2018.2

Table Of Contents
Time stamp
A time stamp can be added to each picture taken. Right-click the Camera element after adding
it to the form, select Camera properties, and then check Add Time Stamp.
The time stamp will be added to the bottom left of the picture, with medium font size, and long
date format (for example: 6/15/2009 1:45 PM). These settings can only be changed via the
Source tab or in code; see "Using the COTG plugin: cotg-2.0.0.js" on page523 and the Capture
OnTheGo API: "Camera" on page535.
Note
The Time stamp feature doesn't work in versions of the app prior to 10.6.
How to use the captured or selected image in a template
After a user has submitted the form and the data has been extracted, you may want to display
the captured or selected image in a Designer template, for example in a letter or on a web
page. To do this:
1. Load the data mapping configuration (or at least the data model).
2. Insert a dummy image in the template.
3.
Right-click the dummy image and select Dynamic Image. The Text Script Wizard
appears.
4.
Under Field select the field that contains the base64-encoded string. The script puts the
given string in the source (src) attribute of the image (<img>).
Instead of using the Text Script Wizard, you could also write a script yourself; see "Writing your
own scripts" on page722.
Date and Formatted Date
The Date element and the Formatted Date element display the current date on the device when
the form is first opened. When the element is touched, a date selector appears so the user can
modify this date. The Formatted Date element displays dates in a format that depends on the
locale of the device on which the user is viewing the form. A Date Element displays dates in the
ISO 8601 format: YYYY-MM-DD.
Page 614