TForm

Base class for forms on a web page containing TFormField instances.

Inheritance

LevelAncestorDescription
1TObjectUltimate ancestor in a class hierarchy
2TWebPageComponent Abstract base class for components within a web page that can be rendered to a THtmlElement.
3TDefaultWebPageComponent Base class for TWebPageComponent with a caption
4TForm

Source

WebSite.Form.pas (39)

Description

Represents a container for fields on a web page that can posted at once by the user. IsSubmittedAndValid can be used to check whether this specific form has been posted by the user and to validate its input. Only when every TFormField passes validation the form is considered to be valid. Descendant classes can override Validate to perform extra checks, possibly including checks that cover the values of multiple form fields at once.

Fields

ScopeVisibilityTypeNameDescription
InstanceprivateTFormProblemsFProblems
InstanceprivateTUriFAction
InstanceprivateTHttpMethodFMethod
InstanceprivateTList<TWebPageComponent>FSections
InstanceprivateTBooleanFShowFeedback
InstanceprivateTBooleanFAllowComment
InstanceprotectedTFormCheckBoxFieldIgnoreWarningsField
InstanceprotectedTFormLongTextFieldIgnoreWarningsCommentField
InstancepublicTList<TFormHiddenField>HiddenFields
InstancepublicTHtmlFormEncodingTypeEncodingType

Methods

ScopeVisibilityResultNameDescription
InstanceprivateSetMethod(Value: THttpMethod)
InstanceprotectedTTextGetIgnoreWarningsComment()
InstanceprotectedTUriGetAction()
InstanceprotectedSetAction(Value: TUri)
InstanceprotectedMethodChanged()
InstanceprotectedTHtmlElementRenderSection(Request: TWebSiteRequest; Component: TWebPageComponent)
InstanceprotectedRenderContents(Request: TWebSiteRequest; Contents: THtmlElementList)
InstanceprotectedFormLoaded()
InstanceprotectedTHtmlFormRenderToForm(Request: TWebSiteRequest)
InstanceprotectedValidateChild(Child: TWebPageComponent)
InstancepublicCreate(FieldFactory: TFormFieldFactory; Name: TText)
InstancepublicDestroy()
InstancepublicTHtmlElementRender(Request: TWebSiteRequest)
InstancepublicLoadFromParameters(Parameters: TDictionary)
InstancepublicLoadFromRequest(Request: TWebSiteRequest)
InstancepublicTBooleanValidate(Request: TWebSiteRequest)
InstancepublicTBooleanIsValid()
InstancepublicTBooleanIsSubmittedAndValid(Request: TWebSiteRequest)
InstancepublicTWebPageComponentGetDescendantWithName(Name: TText)