2022.2

Table Of Contents
BarcodeScanner
TheBarcodeScannerelementaddsabuttontotriggerthedevicetoscanabarcode.Averylargevari-
etyofbarcodetypesaresupported.Oncethebarcodehasbeenscanned,thedatafromthebarcode
willbeaddedtotheCOTGFormandsubmittedalongwithit.
Note: UsingtheBarcodeScannerelementrequirestheinstallationoftheZXingBarcodeScan-
nerapplicationonAndroiddevices.Theapplicationreturnsthebarcodedataafterscanning.
Camera
TheCameraelementaddsagroupofbuttonstocaptureorselectanimage.Oncetheimageisselec-
tedviathecameraorthedevice'slibrary(aka"gallery"),itissavedwithintheFormdata.
Whentheformissubmitted,theimageissentinabase64-encodedstringformat.Tolearnhowtoadd
Cameradatatoatemplate,see"AddingCameradatatothetemplate"onpage521.
TheCameraelementhasanumberofoptions,ofwhichmostcanbesetintheDesignview.These
optionsaredescribedbelow.
Alloptions,includingoptionsthatcannotbesetviatheDesignview,canbesetviatheSourceviewor
incode;see"Changingdefaultsettingsforwidgets"onpage547.
Buttons
Bydefault,theCameraelementaddsthreebuttonstotheform:
l
Take now:Opensthedevice'sdefaultCameraapplicationtotakeapictureusingthedevice's
camera.CaptureOnTheGohasnoimpactonthedevice'sapplications,sothefeaturesavailable
(quality,orientation,filters)aredependentonthedeviceitself.Youcan,however,settheformat,
qualityandscalingforimagesthataresubmittedbytheCameraelement,asexplainedbelow.
l
Library:Opensthedevice'sdefaultlibraryorgalleryapplicationtoselectasingleimagethatis
thensavedintheformdata.Theaccessibleimagesandnavigationdependonthedeviceitself.
l
Clear:RemovesanyexistingimagedatafromtheCameraelement.
ToomittheTakenoworLibrarybutton,edittheCameraelement'sproperties:right-clicktheCamera
elementafteraddingittotheform,selectCamera propertiesandthenusetheSourcedrop-downto
selectwhichbuttonswillbeavailable:Take,Pickfromlibrary,orboth.
Page 634