2022.2

Table Of Contents
3. Ifapplicable,chooseastyleforthelabel(forthelabelofaCheckbox,forexample,youcan'tseta
style).
l
Wrap input with labelplacestheinputelementinsidetheLabelelement.
l
Attach label to inputtiesthelabeltotheinputelementusingtheforattributeofthe
Labelelement.
l
Use label as placeholderinsertsthegivenlabeltextintheplaceholderattributeofthe
field.
l
No styleomitsthelabelaltogether.
Note: Thefirsttwolabelstylesensurethatwhentheuserclicksthelabel,theinput
elementgetsthefocus.
WhenyouaddaCaptureOnTheGo(COTG)elementtoatemplatethatyoudidn'tstartwithaCOTG
templatewizard,theDesignerwillautomaticallyaddthenecessaryJavaScriptfiles:thejQuerylibrary
andtheCOTGlibrary:cotg-2.1.0.js.(See:"UsingtheCOTGplugin"onpage545.)
IfatemplatecontainsanearlierversionoftheCOTGlibrary,thenewestversionwillbeaddedtothe
resources,butyouwillbeaskedwhichversionofthelibraryyouprefertouse.Yourpreferredlibrarywill
beincludedinthesection(see:"Includesdialog"onpage890).
TheFoundationJavaScriptfilesandstylesheetswillnotbeadded.Youonlygetthoseautomatically
whenyoustartcreatingaCOTGtemplatewithatemplatewizard.(See:"UsingFoundation"on
page528.)
Element specific settings
AfterinsertingcertainCOTGelements,suchastheCameraelement,someimportantsettingshaveto
bemade.Thesewillappearwhenyouright-clicktheelementandselectitfromtheshort-cutmenu.
Alternatively,youcanmakesettingsontheSourcetab(see"ChangingwidgetsettingsinHTML"onthe
facingpage).
ThedefaultsettingscanbechangedinJavaScript;see"Changingdefaultsettingsforwidgets"on
page547.
Attributes
Someattributes(whicharen'tthesameasthesettingsmentionedabove)ofaCOTGelementcanbe
seenontheAttributespane,afterselectingtheelement(see"Selectinganelement"onpage570).
AllCOTGelementshavearoleattribute.Thisattributeisnotsupposedtobeedited:withoutthecor-
rectroleattribute,theelementwon'tfunction.
Asnoted,thenameattributeiswhatidentifiestheelementaftersubmittingtheform.
Page 537