Click or drag to resize
FormProviderSetFormData Method
Sets data of a form represented by a list of its components.

Namespace: Kentico.Forms.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
public virtual BizFormItem SetFormData(
	BizFormInfo bizFormInfo,
	List<FormComponent> formComponents,
	Nullable<Guid> contactGuid
)

Parameters

bizFormInfo
Type: CMS.OnlineFormsBizFormInfo
Biz form whose data are to be set.
formComponents
Type: System.Collections.GenericListFormComponent
Form components containing values to be set.
contactGuid
Type: SystemNullableGuid
Guid of current contact, can be null.

Return Value

Type: BizFormItem
Returns the biz form item set.

Implements

IFormProviderSetFormData(BizFormInfo, ListFormComponent, NullableGuid)
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when bizFormInfo or formComponents is null.
Remarks
The SaveBizFormItem event is invoked on all form components which have been initialized using an instance of BizFormComponentContext.
See Also