Click or drag to resize
FormControlsHelperLoadFormControl Method
Loads the given form control from its definition.

Namespace: CMS.FormEngine.Web.UI
Assembly: CMS.FormEngine.Web.UI (in CMS.FormEngine.Web.UI.dll) Version: 10.0.0
Syntax
C#
public static FormEngineUserControl LoadFormControl(
	Page page,
	string controlName,
	string fieldName,
	BasicForm form = null,
	bool loadDefaultProperties = true
)

Parameters

page
Type: System.Web.UIPage
Page where the form control should be loaded
controlName
Type: SystemString
Form control code name
fieldName
Type: SystemString
Field name
form (Optional)
Type: CMS.FormEngine.Web.UIBasicForm
Form
loadDefaultProperties (Optional)
Type: SystemBoolean
If true, the default properties for the control are set

Return Value

Type: FormEngineUserControl
See Also