Add a basic visibility expression
- Last UpdatedAug 02, 2024
- 2 minute read
To add a basic visibility expression to a Choice 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: 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.
Note: While you can simply select an item for a simple visibility expression without typing an open bracket, we recommend that you always type the open bracket as a matter of habit. As you begin building more complex visibility expressions, you risk deleting the expression if you select an item from the drop-down without first typing an open bracket.
-
Select the item from the drop-down list that will be used to control the visibility of the selected item. For example, you can make Option #2 visible only if Choice #1 of Choice Group #1 has been selected (Group #1::Choice #1), and/or if Option #1 is set to True (Option #1::True).
For additional information, see Operators, rules, and behavior for visibility expressions.
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.