Table of Contents

Class VisibilityConditionForm

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

View model for rendering a VisibilityCondition configuration.

[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 class VisibilityConditionForm
Inheritance
object
VisibilityConditionForm
Extension Methods

Constructors

VisibilityConditionForm()

public VisibilityConditionForm()

Properties

AvailableVisibilityConditions

Represents list of all available visibility conditions.

public IEnumerable<HtmlOptionItem> AvailableVisibilityConditions { get; set; }

Property Value

IEnumerable<HtmlOptionItem>
See Also

FormComponentInstanceIdentifier

Gets or sets identifier of the currently edited instance of FormComponent<TProperties, TValue>.

public Guid FormComponentInstanceIdentifier { get; set; }

Property Value

Guid

FormComponents

Collection of form components used for configuring VisibilityCondition.

public IEnumerable<FormComponent> FormComponents { get; set; }

Property Value

IEnumerable<FormComponent>

FormFieldName

Gets or sets name of a field the visibility condition belongs to.

public string FormFieldName { get; set; }

Property Value

string

FormId

Gets or sets ID of a biz form whose fields are being edited.

public int FormId { get; set; }

Property Value

int

IsVisibilityConditionValid

Returns true if current visibility condition is valid for current form component.

public bool IsVisibilityConditionValid { get; set; }

Property Value

bool

Remarks

Visibility condition is invalid e.g. when visibility condition implements Kentico.Forms.Web.Mvc.IAnotherFieldVisibilityCondition and depending field is in order after current form component.

NotifyFormBuilder

Decides whether Form builder should be notified about validation of VisibilityCondition configuration.

public bool NotifyFormBuilder { get; set; }

Property Value

bool

SelectedVisibilityConditionIdentifier

Contains value of the selected item in the list represented by AvailableVisibilityConditions.

public string SelectedVisibilityConditionIdentifier { get; set; }

Property Value

string

SelectedVisibilityConditionLocalizedLabel

Represents localized label for the selected visibility condition dropdown.

public string SelectedVisibilityConditionLocalizedLabel { get; set; }

Property Value

string
See Also

VisibilityConditionConfiguration

Gets or sets VisibilityConditionConfiguration for displaying the form used for VisibilityCondition's configuration.

public VisibilityConditionConfiguration VisibilityConditionConfiguration { get; set; }

Property Value

VisibilityConditionConfiguration