TFormField

Abstract base class for form fields that can occur on a web page.

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
4TFormField

Source

WebSite.Form.Field.pas (35)

Description

Form fields are components on a web page that allow user input. The current value of a TFormField is stored in Value. Usually a TFormField has a TForm ancestor. When the user posts a form on a web page, LoadFromParameters is called to allow the field to fetch its new value. Eventually CheckInput is called to allow the form field to validate its new value and possibly add problems that will be presented to the user. It is explicitly allowed for a field to contain a malformed or invalid value as long as this is correctly indicated by generating problems.

Fields

ScopeVisibilityTypeNameDescription
InstanceprotectedTBooleanFNullable
InstanceprotectedTNullValueFNullValue
InstanceprotectedTValueFValue
InstanceprotectedTBooleanFInputOK
InstancepublicTInteger32TabIndex
InstancepublicTTextOnChange

Methods

ScopeVisibilityResultNameDescription
InstanceprotectedSetNullable(Value: TBoolean)
InstanceprotectedSetNullValue(Value: TNullValue)
InstanceprotectedSetValue(Value: TValue)
InstanceprotectedUpdateValue(Value: TValue)
InstanceprotectedValueChanged()
InstanceprotectedTBooleanGetInputOK()
InstanceprotectedSetInputOK(Value: TBoolean)
InstancepublicCreate(Name: TText; Caption: TDocumentNode)
InstancepublicDestroy()
InstancepublicTWebSiteRequestHandlerOld_CreateRequestHandler(Request: TWebSiteRequest)
InstancepublicCheckInput(Problems: TFormProblems)
InstancepublicClear()
InstancepublicTBooleanHasInput()Returns True when the field has actual new input entered by the user
InstancepublicSetInputOptional(Value: TBoolean)Sets whether the field is allowed to leave its current value unchanged