Add a visibility expression with logical operators
- Last UpdatedAug 02, 2024
- 2 minute read
To add a visibility expression that uses logical operators to a group, choice or option:
-
Highlight the item for which you are setting visibility (Choice Group, Choice or Option). You can select any item except the initial one. That is, you cannot make the visibility conditional of the first item (Choice Group or Option) in the Object Wizard. If the first item is a Choice Group, you cannot make it or any of its Choices conditional.
-
Place the cursor in the Visibility text box of the selected item, and type " [ " (open bracket character). A drop-down list of all preceding items (Choices and Options) is displayed.
Note: Always type an open bracket before selecting an item from the drop-down list. Simply selecting an item without first typing an open bracket will overwrite the existing expression.
Note: Choices are listed in format "Choice Group Name::Choice Name", for example, Choice Group #1::Choice #1. Options are listed in the format "Option::State", for example Option #1::True.
-
Select the item upon which you are basing the visibility of the selected item. It will be entered in the visibility expression. To expand the expression:
-
Place the cursor at the front of the expression (before the open bracket) and enter the NOT operator, or
-
Place the cursor at the end of the expression (after the close bracket) and enter the AND or OR operator.
-
-
Type " [ " (open bracket character) and select another item from the drop-down. All Object Wizard items must be enclosed in brackets. Enclose items and operators in parentheses as needed to ensure that the expression resolves as intended.

-
Add additional operators, parentheses, and Object Wizard items as needed to complete the visibility expression. For example:
[ChoiceGroup1::Choice1] AND ([Option1::True] OR [Option2::True] OR [Option3::False])
Note: When a user configures an instance, the default behavior of elements remains in effect, even if they are hidden from the user. The default Choice of a hidden Choice Group is still selected, and hidden Options remain in their default states.
For additional information, see Operators, rules, and behavior for visibility expressions.