Click or drag to resize
PortalFormHelperGetWebPartFormInfo Method
Returns cached and merged FormInfo for web parts.

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 8.2.23
Syntax
C#
public static FormInfo GetWebPartFormInfo(
	string webPartName,
	string webPartProperties,
	FormInfo beforeDefinition,
	FormInfo afterDefinition,
	bool clone,
	string defaultValues = ""
)

Parameters

webPartName
Type: SystemString
Name of the web part. Use suffix FormHelper.CORE to set different name for form info which doesn't contain before/after definitions
webPartProperties
Type: SystemString
XML schema for web part FormInfo
beforeDefinition
Type: CMS.FormEngineFormInfo
FormInfo for Before definition of the web part
afterDefinition
Type: CMS.FormEngineFormInfo
FormInfo for After definition of the web part
clone
Type: SystemBoolean
When returned FormInfo is used only for reading then cloning can be set to FALSE
defaultValues (Optional)
Type: SystemString
XML definitions with overriden system default values

Return Value

Type: FormInfo
Returns FormInfo object
See Also