2022.2

Table Of Contents
4. Nowtypeadotafterformatter,pressCtrl+spaceandchooseoneofthefunctionstoformata
dateandtime;see"Date,date/timeandtimefunctions"onpage1176.
Note: TheLocale,setintheEdit > Localedialog,hasaninfluenceontheformattingofadate.
TheLocalecanbethesystem'slocale,aspecificlocale,oritcandependonthevalueofadata
fieldorruntimeparameter;see"Locale"onpage706.
Forms
WebtemplatescancontainForms.CaptureOnTheGotemplatesalwayscontainaForm.
Tip: TocreateaCaptureOnTheGotemplate,preferablyuseaTemplateWizard(see"Capture
OnTheGotemplatewizards"onpage525).TheWizarddoesn'tjustaddtheform,italsoaddsthe
necessaryCaptureOnTheGoformelements(see"COTGElements"onpage633),stylesheets
andJavaScriptfiles,andextrapre-madeelements.
AddingaForm
ThisproceduredescribeshowtoaddaFormelementtoanexistingWebcontext.
1. OntheResourcespane,expandtheWebcontextanddouble-clickaWebpagetoopenit.
2. TousetheFormWizard,selecttheInsert > Form Wizardmenuoption.TheFormWizardaddsa
FormtotheWebpageincludingthespecifiedfields.
Alternatively,youcanselectInsert > Formonthemenutoopenadialogthatletsyousetthe
Form'sproperties,validationmethodandlocation,butdoesn'tallowyoutospecifyfields.Ifyou
choosethismethod,skipstep8and9ofthisprocedureandaddfieldsafterinsertingtheForm
(see"AddingelementstoaForm"onpage507).
3. AddanIDand/oraclass.ID'sandclassesareparticularlyusefulwithregardtovariabledata
(see"Personalizingcontent"onpage708)andstyling(see"StylingtemplateswithCSSfiles"on
page672).
4. IntheActionfield,entertheURLwheretheformdatashouldbesent.TheURLshouldbea
server-sidescriptthatcanacceptformdata.TheactionofaCaptureOnTheGoformshouldspe-
cifytheWorkflowHTTPServerInputtaskthatreceivesandhandlesthesubmitteddata.The
actionwilllooklikethis:http://127.0.0.1:8080/action(8080isWorkflow'sdefaultportnumber;
'action'shouldbereplacedbytheHTTPactionofthatparticularHTTPServerInputtask).The
methodofaCaptureOnTheGoformshouldbePOSTtoensurethatitdoesn'thitadatalimit
whensubmittingtheform.TheGETmethodaddsthedatatotheURL,andthelengthofaURLis
limitedto2048characters.EspeciallyformscontainingoneormoreCamerainputsmayproduce
avoluminousdatastreamthatdoesn'tfitintheURL.GETalsoleavesdatatrailsinlogfiles,
Page 640