FormHelperGetFormFieldDefaultControlType Method (String, FieldEditorControlsEnum) |
Returns default form field control type according to the form field data type.
If the control type of the configured control is not allowed, returns null.
Namespace: CMS.FormEngineAssembly: CMS.FormEngine (in CMS.FormEngine.dll) Version: 11.0.0
Syntax public static string GetFormFieldDefaultControlType(
string fieldType,
FieldEditorControlsEnum controlType = FieldEditorControlsEnum.All
)
Parameters
- fieldType
- Type: SystemString
Form field data type - controlType (Optional)
- Type: CMS.FormEngineFieldEditorControlsEnum
Control type
Return Value
Type:
StringSee Also