Data Management Capabilities > Managing Configurable Products > Developing Advanced Selection Logic for Configurable Modules > Examples and Best Practices for Advanced Selection Logic > Common Logic Expressions > Controlling Available Options Using Case Tables
  
Controlling Available Options Using Case Tables
Another common situation is when you have two options and you want to control the possible choices for the second option based on what the user selects for the first option. Consider the following example:
askMaterial
askTrim
Oak
Cherry
Oak
Walnut
Maple
Cherry
Maple
Walnut
Maple
Oak
Walnut
Cherry
In this case, if the user selects a material Oak, the only valid choices for the trim are Cherry and Walnut.
You can also use this technique to automatically drive, or define, the value of a related parameter. For example, if the user specifies a value for askMaterial as Walnut, then the only valid value for askTrim is Cherry.
If the parameter askTrim is defined as hide when driven = true on the UI Properties tab, then the user is not required to provide a value for askTrim if askMaterial is specified as Walnut.
* 
Remember that parameters are processed by the system on a page-by-page basis. Therefore, if you want askTrim to be automatically specified by the system, you must place askTrim on a page after the page where askMaterial is specified.