Click or drag to resize
BizFormHelper.Create Method

Creates a new biz form by creating the underlying database table and setting the corresponding BizFormInfo and DataClassInfo. The database table name is prefixed using GetFormTablePrefix(String) and processed by GetFullTableName(TableManager, String, String) which truncates excessive table names.

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). The form name is used as table name if tableName is not specified or its value equals to CODENAME_AUTOMATIC.

Namespace: CMS.OnlineForms
Assembly: CMS.OnlineForms (in CMS.OnlineForms.dll) Version: 13.0.131
Syntax
C#
public static BizFormInfo Create(
	string formDisplayName,
	string formName,
	string tableName,
	SiteInfo siteInfo
)

Parameters

formDisplayName
Type: System.String
Display name of the form.
formName
Type: System.String
Name of the form, or null.
tableName
Type: System.String
Table name to store form data, or null.
siteInfo
Type: CMS.SiteProvider.SiteInfo
Site of the form.

Return Value

Type: BizFormInfo
Returns the new biz form.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when formDisplayName or siteInfo is null.
ArgumentExceptionThrown when formDisplayName is an empty string.
BizFormTableNameNotUniqueExceptionThrown when biz form table of specified name already exists.
BizFormExceptionThrown when an exception during database table creation, BizFormInfo creation or DataClassInfo creation occurs. See the inner exception for details.
Remarks
The resulting BizFormInfo has FormEmailAttachUploadedDocs and FormLogActivity enabled by default.
See Also