Click or drag to resize
IFormProviderSetFormData 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#
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.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when bizFormInfo or formComponents is null.
See Also