WinStudio

Visible When Property

Use the Visible When property to specify the conditions under which this component is visible. If you reference variables, other components, or properties on collections on the form, WinStudio creates dependencies so that, when those values change, the condition is automatically executed.

To specify the conditions under which the component is visible, click the browse (...) button next to the property.

For conditional expressions greater than 50 characters, the system creates a variable to hold the expression. In the Component Properties sheet and component list dialog box, the variable is displayed instead of the expression; in the Edit Set of Conditional Actions dialog box mentioned below, the conditional expression is displayed.

NOTE: If you are using the Use Free Form option for a component, this field is disabled. If you want to set "visible when" conditions, you must use the VISIBLEWHEN keyword in the Free Form Data Type field.

Syntax

Use the Edit Set of Conditional Actions dialog box (displayed by the browse button) to build the appropriate expression. See Conditional Action Syntax for details of the syntax.

Example

In this example, when the Credit Hold field is selected, the Credit Hold Date field becomes visible:

Visible:#C(CreditHoldDateEdit), #C(CreditHoldEdit) = "1","True"


Related Topics

Creating a Conditional Action Expression - Simple Example

Conditional Action Syntax

VISIBLEWHEN Keyword

Enabled When Property

Required When Property