IFormComponentValidatorValidateCompareToFieldRules Method |
Validates rules which are of compare-to-another-field type.
Namespace: Kentico.Forms.Web.MvcAssembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax 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:
IEnumerableStringEnumeration of validation errors, empty if validation succeeded.
See Also