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, 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 ellipsis button) to build the appropriate expression.

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