2022.2

Table Of Contents
l
Scale Image:Checkthisoptiontoenableimagescaling.Thensetthemaximumwidthandheight
ofimagesbeforetheyaresenttotheserver.Notethatonlythesmallestoftheseisappliedand
thesizeratioisalwaysmaintained.
Time stamp
Atimestampcanbeaddedtoeachpicturetaken.Right-clicktheCameraelementafteraddingittothe
form,selectCamera properties,andthencheckAdd Time Stamp.
Thetimestampwillbeaddedtothebottomleftofthepicture,withmediumfontsize,andlongdate
format(forexample:6/15/20091:45PM).ThesesettingscanonlybechangedviatheSourcetaborin
code;see"Changingdefaultsettingsforwidgets"onpage547andtheCaptureOnTheGoAPI:"Cam-
era"onpage558.
Note: TheTimestampfeaturedoesn'tworkinversionsoftheapppriorto10.6.
How to use the captured or selected image in a template
Afterauserhassubmittedtheformandthedatahasbeenextracted,youmaywanttodisplaythecap-
turedorselectedimageinaDesignertemplate,forexampleinaletteroronawebpage.Todothis:
1. Loadthedatamappingconfiguration(oratleastthedatamodel).
2. Insertadummyimageinthetemplate.
3. Right-clickthedummyimageandselectDynamic Image.TheTextScriptWizardappears.
4. UnderFieldselectthefieldthatcontainsthebase64-encodedstring.Thescriptputsthegiven
stringinthesource(src)attributeoftheimage(<img>).
InsteadofusingtheTextScriptWizard,youcouldalsowriteascriptyourself;see"Writingyourown
scripts"onpage808.
DateandFormattedDate
TheDateelementandtheFormattedDateelementdisplaythecurrentdateonthedevicewhenthe
formisfirstopened.Whentheelementistouched,adateselectorappearssotheusercanmodifythis
date.TheFormattedDateelementdisplaysdatesinaformatthatdependsonthelocaleofthedevice
onwhichtheuserisviewingtheform.ADateElementdisplaysdatesintheISO8601format:YYYY-
MM-DD.
Whentheformissubmitted,thedatedataissentasplaintext.AFormattedDateelementsubmitsthe
dateintwoformats:intheformatthatdependsonthedevice'sregionalandlanguagesettingsandin
theISOformatmentionedabove(usingahiddenfield).ADateelementsendsthedateintheISO
formatonly.
Page 533