2022.2

Table Of Contents
<input type="hidden" name="status_1" value="0" />
<input type="checkbox" id="status_1" name="status_1" value="1" />
Whenmultiplefieldswiththesamenameareencountered,thepreviousvalueisoverwritten.Thisway
thevaluesforuncheckedcheckboxesandradiobuttonscanbeprocessedeasily.
Tip: TheCaptureOnTheGo(COTG)pluginautomaticallyaddsahiddenfieldforevery
uncheckedcheckboxonaFormwhentheFormissubmitted.ItdoesthisforeveryForm;thetem-
platedoesn'thavetobeaCOTGtemplate.(See:"UsingtheCOTGplugin"onpage545.)
Testing a Capture OnTheGo Template
ACaptureOnTheGo(COTG)templatewillbeusedtocreateaform,thatcanbedownloaded,filledout
andsubmittedusingtheCOTGapp.Beforestartingtoactuallyusethetemplate,youwillwanttomake
surethatitproducesaformthatlooksgoodandfunctionsasexpected.Thistopicexplainshowtopre-
viewtheform,andhowtosubmitdataandpreviewthesubmitteddata.
Previewingtheform
On a PC
ACaptureOnTheGotemplatecanbepreviewedonaPCintwodifferentways.NotethatCapture
OnTheGoformelementswillnotbefunctionalunlesstheyaresenttoadevice.
l
WithinPlanetPressConnectDesigner.YoucanopenthePreviewtabortheLivetabintheWork-
space.ThisdisplaystheoutputHTMLalongwithanyvariabledatabeingadded.OntheLivetab
youcanevenfillouttheformandsubmitit,andifthe"GetJobDataFileonSubmit"optionis
enabled(byclickingthetoolbarbuttonofthesamename),theDesignerwillreceiveanXMLwith
thesubmitteddata(see"GetJobDataFileonSubmit"onthefacingpage).However,remember
thatCOTGFormelementsareonlyfunctionalintheCOTGapp,sotheywon'tsubmitanydata.
l
Withinthedefaultbrowseronyourcomputer.ClickthePreview HTMLbuttoninthetoolbar.This
opensyouroperatingsystem’sdefaultbrowseranddisplaystheforminthatcontext.
Tip: IntheDesigner,youcantesttheresponsivenessofaformusingtheRespons-
iveDesignbuttonatthetoprightoftheworkspace.
Somebrowsersalsoletyoutesttheresponsivenessofaform.InFirefox,forexample,
selectDeveloper>ResponsiveDesigntoviewaformindifferentsizes.
Previewing a COTG Template in the app
ACOTGTemplatecannotonlybepreviewedonaPC;itcanalsobepreviewedonamobiledevice.
ThiswillshowthetemplatewithintheCaptureOnTheGomobileapplication,andallwidgetswillbefunc-
tional.
Page 541