Table of Contents

Class CompareToFieldValidationRule<TValue>

Namespace
Kentico.Forms.Web.Mvc
Assembly
Kentico.Content.Web.Mvc.dll

Inherit this class to implement validation rule which needs value of another field in order to function.

[Obsolete("This API is only available for legacy Form Builder components that provide backward compatibility when transitioning from older versions. The API will be removed when support for the Form Builder compatibility mode is dropped.")]
public abstract class CompareToFieldValidationRule<TValue> : ValidationRule<TValue>

Type Parameters

TValue

Type of the compared values.

Inheritance
object
CompareToFieldValidationRule<TValue>
Derived
Inherited Members
Extension Methods

Constructors

CompareToFieldValidationRule()

protected CompareToFieldValidationRule()

Properties

DependeeFieldGuid

GUID of the field validated against.

[EditingComponent("Kentico.CompareToFieldSelector", Label = "{$kentico.formbuilder.validationrule.comparetofield.dependeefieldname.label$}")]
[Required]
public virtual Guid DependeeFieldGuid { get; set; }

Property Value

Guid

DependeeFieldValue

Gets strongly typed value of the field validated against.

public virtual TValue DependeeFieldValue { get; }

Property Value

TValue