Click or drag to resize
FormField Class
Form field control for the forms.
Inheritance Hierarchy

Namespace: CMS.FormControls
Assembly: CMS.FormControls (in CMS.FormControls.dll) Version: 9.0.0
Syntax
C#
public class FormField : PlaceHolder

The FormField type exposes the following members.

Constructors
  NameDescription
Public methodFormField
Top
Properties
  NameDescription
Public propertyAutomaticValue
Automatic value when the form control is missing (resolves macros in the given string).
Public propertyCssClass
Field's CSS Class.
Public propertyDevelopmentModeOnly
If true, the field is visible only in development mode
Public propertyDisplayColon
Indicates if colon (:) should be displayed behind the field label. If Form is set then Form.UseColonBehindLabel is used as default value, otherwise false.
Public propertyDisplayLabel
Indicates if label should be displayed in inline layout. Default value is True.
Public propertyEditingControl
Editing control.
Public propertyErrorLabel
Error label.
Public propertyField
Field name for the inner controls. This property is only supported in templated form.
Public propertyForm
Form where the control is used.
Public propertyFormControl
Form control.
Public propertyFormFieldInfo
FormFieldInfo for current control.
Public propertyHideOnLiveSite
If true, the field is hidden on the live site.
Public propertyCheckUnique
If true, the field is checked for uniqueness. This property is only supported in UIForm.
Public propertyLabel
Field label.
Public propertyLayout
Layout of the field.
Public propertyResourceString
Resource string for the label.
Public propertyShowRequiredMark
Indicates if required mark (*) should be displayed behind the field label. False by default.
Public propertyText
Text for the label, has higher priority.
Public propertyToolTipResourceString
Name of a resource string used for tooltip.
Public propertyTrim
If true, the value is trimmed. This property is only supported if used inside the form control.
Public propertyUseFFI
Indicates if control should load properties from FormFieldInfo. Default TRUE.
Public propertyValue
Value used for initialization as default value.
Top
Methods
  NameDescription
Protected methodCreateChildControls
Creates the child controls.
(Overrides ControlCreateChildControls.)
Public methodEnsureControls
Ensures the child controls of the control.
Protected methodEnsureInnerControls
Ensures the additional inner controls.
Protected methodLoadErrorLabel
Loads the field error label.
Protected methodLoadFormControl
Loads the form control.
Protected methodLoadLabel
Loads the field label.
Protected methodOnInit
Init event handler.
(Overrides ControlOnInit(EventArgs).)
Top
Extension Methods
  NameDescription
Public Extension MethodCallHandled
Calls the method handled by the exception handler. If the call doesn't succeed, the problem is reported through parent IExceptionHandler control instead of throwing unhandled exception for the entire page. Returns true, if the call succeeded, otherwise returns false.
(Defined by ControlsExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by ControlsExtensions.)
Top
See Also