Table of Contents

Class AnotherIntFieldVisibilityCondition

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

Form component visibility condition specifying dependency on another field of integer type whose value satisfies condition based on ComparisonType and CompareToValue.

public class AnotherIntFieldVisibilityCondition : AnotherFieldVisibilityCondition<int?>
Inheritance
object
AnotherIntFieldVisibilityCondition
Inherited Members
Extension Methods

Properties

CompareToValue

Value to compare against.

[EditingComponent("Kentico.IntInput", Label = "", Order = -90)]
[Required]
public int CompareToValue { get; set; }

Property Value

int

ComparisonType

Type of comparison to perform.

[EditingComponent("Kentico.NumericFieldComparisonTypeSelector", Label = "", Order = -100)]
public NumericFieldComparisonTypes ComparisonType { get; set; }

Property Value

NumericFieldComparisonTypes

Methods

IsVisible()

Gets a value indicating whether a form component is visible.

public override bool IsVisible()

Returns

bool

Returns true if DependeeFieldValue and CompareToValue satisfy specified ComparisonType. If DependeeFieldValue is null, returns false.

See Also