2022.2

Table Of Contents
7. Selectavalidationmethod:
l
TheBrowservalidationmethodleavesituptothebrowsertovalidatetheuserinput.When
addingfieldstotheForm(seethenextstep)youcanonlymakefieldsrequiredandsetthe
maximumlengthasanadditionalrequirementforsomefields.
l
SelectJQuery ValidationtovalidateusingJQueryscripts.Thisallowsyoutospecify
stricterrequirementsperfieldandtypeadifferentmessageforeachfieldtodisplaytothe
useriftheinputisnotvalid.Thismethodensuresamoreconsistentvalidationasitis
browserindependent.ThenecessaryJQueryfileswillbeaddedtotheJavaScriptfolderon
theResourcespanewhentheformisinserted.
8. UnderFields,clicktheAddbuttonandclickonthedesiredfieldtypetoaddafieldofthattype;
see"FormElements"onpage644.
Note: AFieldsetisnotavailableintheFormWizard,becauseaFieldsetitselfcancontain
multipledifferentfields.AddtheFieldsetafterinsertingtheForm;see"Addingelementsto
aForm"onpage507.
9. Double-clickeachfieldintheFieldslistandchangeitssettings.Foranexplanationoftheset-
tings,see"AddingelementstoaForm"onpage507.
10. TheorderoftheelementsinthelistunderFieldsdeterminesinwhichordertheelementswillbe
addedtotheForm.UsetheMove UpandMove Downbuttonstochangetheorderoftheele-
mentsinthelist.
11. UsetheLocationdrop-downtoselectwheretoinserttheelement.
l
At cursor positioninsertsitwherethecursorislocatedinthetemplate.
l
Before elementinsertsitbeforetheHTMLelementinwhichthecursoriscurrentlyloc-
ated.Forexampleifthecursoriswithinaparagraph,theinsertionpointwillbebeforethe
<p>tag.*
l
After start taginsertsitwithinthecurrentHTMLelement,atthebeginning,justafterthe
starttag.*
l
Before end taginsertsitwithinthecurrentHTMLelement,attheend,justbeforetheend
tag.*
l
After elementinsertsitaftertheelementinwhichthecursoriscurrentlylocated.For
exampleifthecursoriswithinaparagraph,theinsertionpointwillbeaftertheendtagof
theparagraph(</p>).*
Page 504