Class CompareToFieldValidationRule<TValue>
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
TValueType of the compared values.
- Inheritance
-
objectValidationRule<TValue>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