Click or drag to resize
FormFieldInfoExtensionsHasFormFieldControlWithName Method
Returns whether formField contains control defined by controlName, in it's settings.

Namespace: CMS.FormEngine
Assembly: CMS.FormEngine (in CMS.FormEngine.dll) Version: 13.0.131
Syntax
C#
public static bool HasFormFieldControlWithName(
	this FormFieldInfo formField,
	string controlName
)

Parameters

formField
Type: CMS.FormEngineFormFieldInfo
Form field object which to check.
controlName
Type: SystemString
Name of control which to check. Use constants defined in FormFieldControlName class.

Return Value

Type: Boolean

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type FormFieldInfo. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also