2022.2

Table Of Contents
Thisoptionrequiresthat:
l
Workflowhasbeeninstalledonthelocalmachine,andtheWorkflowHTTP/SoapServicehas
beenstarted.Todothis,intheWorkflowmenu,clickTools > Service Console,thenright-click
HTTP/Soap Serverandstartit.
l
IntheDesignermenuWindow > Preferences > Web,theWorkflow URLhasbeensettothe
correcthost.Thedefaultishttp://127.0.0.1:8080/_getSampleFormData_.Thispointstoan
internalprocessoftheWorkflowcomponentrunningatthathost.
Iftheseconditionsaremet,youcangettheXMLfileasfollows:
1. OpentheFormintheDesigner,toggletoLivemodeandfillouttheform.ClicktheAdd Dummy
Databutton(foundonthetoolbarandonlyavailableintheLiveview)topopulateemptyform
fieldswithdummydata.ThisaddsdummydatatostandardHTMLforminputsaswellasCOTG
inputslikethecameraandsignaturewidgets.Inputsthatalreadycontaindataareleftuntouched.
Foralistofdummydatavalues,seethetablebelow.
2. ClicktheGet Job Data File on submittoolbarbutton.Thisreplacesthedefaultformsubmit
actionandwillsendtheformdatatotheWorkflow'sHTTPService(whichneedstoberunningin
thebackground).
Note: Workflow'sHTTPServicemustberunning,butnotnecessarilytheWorkflowService
itself.
3. HittheSubmitbutton.NowthedatafilewillbesentdirectlytotheDesigner.OncetheJobData
FileisreceivedbytheConnectserver,adialogappearsaskingwheretostoreit.
4. SavetheXMLfiletodisk.Youcanviewit,createorupdateadatamappingconfigurationforit
(see"Datamappingconfigurations"onpage199),andinsertthedatainatemplate,usingthe
datamappingconfiguration(see"Personalizingcontent"onpage708).
Note: CheckboxesandRadiobuttonsthatareuncheckedwillnotbesubmittedtothejobdata.
ThisisstandardbehaviorinHTML.Onecanworkaroundthatbyaddingahiddenfieldbeforethe
respectivecheckboxwiththesamenameandforexamplevalue0(see"UsingCOTGElements"
onpage536).
Standard Form input dummy data values
Input Dummy Value
Text "Loremipsumdolorsitamet"
Page 543