Click or drag to resize
BizFormHelperCreateBizFormInfo Method

Creates a new BizFormInfo and initializes it using given display name, name and site ID. Does not set the info to the database. The method is used by CreateInternal(String, String, String, SiteInfo) to supply the BizFormInfo instance.

If formName is not specified or its value equals CODENAME_AUTOMATIC, a new code name is created based on display name.

The form name is sanitized via GetIdentifier(Object, String) and can be safely used as part of the resulting table name.

Namespace: CMS.OnlineForms
Assembly: CMS.OnlineForms (in CMS.OnlineForms.dll) Version: 13.0.131
Syntax
C#
protected virtual BizFormInfo CreateBizFormInfo(
	string formDisplayName,
	string formName,
	SiteInfo siteInfo
)

Parameters

formDisplayName
Type: SystemString
Display name of the form.
formName
Type: SystemString
Name of the form, or null.
siteInfo
Type: CMS.SiteProviderSiteInfo
Site of the form.

Return Value

Type: BizFormInfo
Returns a new BizFormInfo instance initialized with given values.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when formDisplayName is null.
ArgumentExceptionThrown when formDisplayName is an empty string.
Remarks
The resulting BizFormInfo has FormEmailAttachUploadedDocs and FormLogActivity enabled by default.
See Also