Resetting Attributes Conditionally
Attribute-Based Configuration allows you to create the dependency for the target attribute to conditionally reset an attribute based on other selections. This helps in ensuring a default value to be added to the target attribute if the user leaves the attribute blank or null. If the user does not select any value in the attribute, the default value be selected by default.
The following table displays the datatypes on which you can perform this action and the value of Value Expression required.
Action | Datatypes supported | Value Expression |
---|---|---|
Reset | Number Text Picklist Multi-picklist | The default value. For example, 'White' . |
For example, Amttus, a leading laptop manufacturer, wants to use the 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 Attribute | Value Expression |
---|---|---|
When the user selects Black from Color, 16 from RAM, 14 HD from Screen Size, and Yes from Fingerprint Reader, you want to reset the value of HDD to 2 TB. | Laptop HDD | '2 TB' |