2022.2

Table Of Contents
inthedata-custom-messageattributeoftheFormelement,forexample:
<inputid="email1"name="email1"data-custom-message="Enteravalidemailaddress."type="email"
required="">
Validation in Connect 1.0.0
InConnect1.0.0,thevalidationmethodofthetemplatewasstoredusingthenames"standard"and
"custom".Standardhaschangedto"browser"andcustomisnow"jquery-validation".Whenyouopena
templatemadewiththatversionofthesoftware,thetemplatewillbemigratedtousethenewattribute
valuesforthedata-validation-methodattributeofthe<form>element.TheJavaScriptfileweb-form-val-
idation.jswillnotbemigrated:deletethatfileandthenchangetheForm'svalidationmethodtojQuery
Validation,asdescribedabove.WhenyouclickOK,thenewversionoftheweb-form-validation.jsfile
willbeadded.
SubmittingaForm
Whenaformissubmitted,byclickingortouchingtheSubmitbutton,thenameandvalueofformele-
mentsaresenttotheaddressthatisspecifiedintheForm'saction(see"AddingaForm"onpage503
or"ChangingaForm'sproperties"onpage505).Ifthenameattributeisomitted,thedataofthatinput
fieldwillnotbesentatall.
TheForm'svalidationshouldensurethatthedatathattheusersubmitsisvalid.
Using Form elements
WebFormelementscanbeusedinaWebFormorinaCaptureOnTheGoForm(see"Forms"on
page640and"CaptureOnTheGo"onpage516).Thistopicexplainshowtoaddtheseelementstoa
FormandhowtopreparethemsothatwhentheFormissubmitted,theyprovidevaliddatathatcanbe
handledeasily.
ForalistofFormelements,see"FormElements"onpage644.
ForalistoftheextraelementsthatcanbeusedinaCaptureOnTheGoform,see"COTGElements"on
page633.
AddingelementstoaForm
ToaddanelementtoaFormorFieldset,clickinsidetheFormorFieldset,selectInsert > Form ele-
ments,andchoosetherespectiveelementonthemenu.(Whentheelementisn'tavailableviathe
menu,seethetipbelow.)Nowyoucanchangetheelement'ssettings:
1. AddanID(required)and,optionally,aclass.
Page 507