2022.2

Table Of Contents
l
Submit:Thebuttonwillvalidatetheformdataandifvalidationissuccessful,send
thedatatotheprovidedURL(theactionspecifiedfortheForm;see"Changinga
Form'sproperties"onpage642).
l
Reset:Thebuttonwillresettheformtoitsoriginalconfiguration,erasinganyinform-
ationenteredandoptionsprovided.Note:Thiscannotbeundone!
5. Dependingonthevalidationmethodoftheform(see"ChangingaForm'svalidationmethod"on
page643)andthetypeofelementthereareanumberofoptionstosetunderValidation.With
Browservalidationyoucanonlymakeafieldrequiredandsetamaximumlength.
l
Required:Checkifthefieldisrequiredtosubmittheform.Ifafieldisrequiredbutcontains
nodata,amessagewillbeshowntotheuser.
NotethatsomeelementscanonlybemaderequiredviatheForm'svalidationsettings(see
"ChangingaForm'svalidationmethod"onpage643).Itisn'talwaysusefultomakeafield
required;afterall,ifithasadefaultvalueitwillneverbeempty.
l
Minimum and maximum length:Enteranumericalvaluefortheminimumandmaximum
characterlengthrequiredforthisfield.
l
Equal to:Usethedrop-downtoselectanotherfieldthatisalreadyaddedtothesame
Form.Thecontentsofbothfieldsmustmatchforthedatatobevalidated.Thisisusefulfor
confirmationfieldssuchasforpasswords,emailaddressesetc.
6. UnderWarnings,typethemessagethatwillbedisplayedtotheuseriftheinputisnotvalid.
ThenameattributeofFormelementsissenttotheserver(togetherwiththeinputvalue)aftertheform
hasbeensubmitted.WhenaddinganelementtoaFormorFieldset,youcannotspecifyaname;theID
willbecopiedtotheelement'snameattribute.AfteraddingtheelementtotheFormorFieldsetyoucan
changethenameontheAttributespane.
Adding new HTML5 elements
HTML5addedseveralnewinputelementtypesthatcan'tbefoundintheDesignermenu.Toaddsuch
anelementtoatemplateyoucandothefollowing:
1. Addaninputelementfromthemenu,forexampleaTextorButton.
2. Selecttheelementinthetemplate.
3. OntheAttributespane,selectthedesiredinputtypefromtheTypedrop-downlist.
Changing a form element
OnceanelementhasbeenaddedtoaForm,itcaneasilybechanged:simplyselecttheelementinthe
template,gotothetheAttributespane,andedittheelement.Aninputelementcanevenbechanged
toanothertypeofinputelementbyselectingthedesiredinputtypefromtheTypedrop-downlist.
Page 509