Click or drag to resize
IFormComponentValidatorValidateCompareToFieldRules Method
Validates rules which are of compare-to-another-field type.

Namespace: Kentico.Forms.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
IEnumerable<string> ValidateCompareToFieldRules(
	string formName,
	FormComponent component,
	List<FormComponent> allComponents
)

Parameters

formName
Type: SystemString
Name of the form containing the components being validated.
component
Type: Kentico.Forms.Web.MvcFormComponent
Component to validate.
allComponents
Type: System.Collections.GenericListFormComponent
All form components.

Return Value

Type: IEnumerableString
Enumeration of validation errors, empty if validation succeeded.
See Also