Allowing Values Conditionally for a Picklist or Multi-Select Picklist Attribute
Attribute-Based Configuration allows you to create the dependency for the target attribute. You can configure if you want to allow the attribute values based on a condition. The constrained value should be derived from a value expression, for example, can be pulled from a product field. This helps in providing only a relevant set of attributes for the user to make selections, thus providing a guided experience for configuration.
The following table displays the data types on which you can perform this action and the value of Value Expression required.
Action | Data Types supported | Value Expression |
---|---|---|
Allow | Picklist Multi-picklist | The values to be allowed. 'Red;Blue;Black;Orange' For example, '2014;2012;2015' |
For example, Amttus, a leading laptop manufacturer, wants to use attributes to drive the product selection of their users. A laptop has five attributes - Color, HDD, RAM, Screen Size, and Fingerprint Reader. The following table describes the products and its attributes.
Product | A-560 | A-560m | A-440 | A-440m | A-320 | A-320m |
---|---|---|---|---|---|---|
Color | Black | Black | White | White | Black | White |
HDD | 1 TB | 2 TB | 500 MB | 500 MB | 1 TB | 1 TB |
RAM | 8 | 16 | 4 | 8 | 8 | 16 |
Screen Size | 14 HD | 14 HD | 15 | 15 HD | 14 | 14 HD |
Fingerprint Reader | Yes | Yes | Yes | Yes | No | Yes |
The following table describes scenarios where you can use this feature.
Scenario | Target Field | Value Expression |
---|---|---|
When the user selects White color, you want to allow Yes as a Fingerprint reader attribute. | Laptop Fingerprint Reader | 'Yes' |