Conditional visibility expressions for choice groups, choices, and options
- Last UpdatedAug 02, 2024
- 2 minute read
You can set whether or not a user will be able to see individual Choice Groups, Choices and Options as they use the Object Wizard.Visibility expressions are scripted and use simple logical expressions to determine if users will be able to see a particular Option or Choice when configuring instances. The visibility expression determines if the Object Wizard component will be visible or hidden, based on the user's previous Object Wizard selections. For example, selecting Choice #1 may hide (or show) Choice Groups, Choice or Options that follow that Choice in the Object Wizard.
Note: You cannot add a visibility expression to the first listed item (Choice Group or Option) in an Object Wizard; the first item is always visible.
When a user uses the Object Wizard to configure an instance, the default behavior of any elements hidden by visibility expressions remains in effect. For example, if Choice #1 is the default of a Choice Group, and the Choice Group is hidden, Choice #1 is still selected for the configured instance, even though it is not visible to the user. If the default state of an Option is True but the Option is hidden, the Option remains True for the configured instance.
Visibility is set through logic expressions assigned to Choices and Options. These logic expressions use the Boolean operators AND, OR, and NOT.
In derived templates that contain an Object Wizard from the parent object, icons are used to implement visibility settings that are in addition to the settings made in the parent object. Note that the visibility settings made in the parent Object cannot be changed in the derived template. See Object wizard visibility settings in a derived template for additional information.
Related Links
- Add a basic visibility expression
- Add a visibility expression with logical operators
- Operators, rules, and behavior for visibility expressions
- Object wizard visibility settings in a derived template
- Example 1: Basic visibility expressions
- Example 2: Complex visibility expressions
- Example 3: Visibility of groups, choices, and options in a derived object wizard