Click or drag to resize
FormProviderCreateFormComponent Method
Creates a new form component instance based on its description in the form field.

Namespace: Kentico.Forms.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
protected virtual FormComponent CreateFormComponent(
	FormFieldInfo formFieldInfo,
	BizFormComponentContext context
)

Parameters

formFieldInfo
Type: CMS.FormEngineFormFieldInfo
Form field describing the form component to create.
context
Type: Kentico.Forms.Web.MvcBizFormComponentContext
Contextual information specifying where the form component is being used.

Return Value

Type: FormComponent
Returns an instance of the form component as described in the form field.
Remarks
A component instance is created using the FormComponentActivator and IFormComponentPropertiesMapper passed when initializing this provider. A proper Name is filled in the created component and SetObjectValue(Object) method is called to set default value.
See Also