Class VisibilityConditionForm
View model for rendering a VisibilityCondition configuration.
public class VisibilityConditionForm
- Inheritance
-
objectVisibilityConditionForm
- Extension Methods
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; }