Enabling a Single Option Based on a User Response
In some cases, you may want to enable or disable a single option based on a user response, which is not a yes/no question. For example, you may want to determine if the user wants the standard or deluxe package, and to enable an additional subsystem if the user selected the deluxe package.
To enable a single option based on a non yes/no user response:
1. Create a configurable module.
2. Attach a child part that represents the relevant option.
3. Add a string input parameter to the configurable module; for example, askPackage.
Define an appropriate prompt value for the string parameter.
Deluxe
Standard
4. Add a boolean non-input parameter to the configurable module; for example, useDeluxe.
Define the default expression as askPackage.equals(“Deluxe”)
Instead of defining an expression for a parameter, another option is to define the expression constraint as useDeluxe == askPackage.equals(“Deluxe”)
5. Set the boolean parameter useDeluxe on the Inclusion Option of this configurable module for the child part of this option.
Using this approach, if the user’s response is Deluxe, then the expression for the boolean parameter useDeluxe evaluates to true, and the child part is included in the variant part structure.
Was this helpful?