on 2025 Feb 12 11:12 AM
Hi SAP CPQ experts,
I am working on a configuration in SAP CPQ where selecting one option should disable another option by greying it out instead of making it disappear. Additionally, an infobox should provide an explanation for why the option is disabled.
So far, I have successfully configured a Disallow Attribute Dependency Rule and added an infobox to display additional information. However, I haven't found a feature that allows me to visually modify the appearance of a field (e.g., changing its color) or making it visible but not editable based on conditions.
The use case:
Is there a standard way to achieve this in SAP CPQ? Or would this require customization?
Thanks in advance for your help!
Denis Gönc
Request clarification before answering.
Hi,
Yes, you can achieve the desired result using the standard product modeling method in SAP CPQ.
To grey out an attribute, you can adjust its property by setting 'Access' to 'ReadOnly'. This will create the desired UI effect.
However, formula rules currently do not support changes to the 'Access' property of an attribute. Instead, scripting is required to read and modify the access level of an attribute within a product configuration model. You can implement these changes through the Attribute Trigger event or other supported Product context events. Below is a detailed guide for scripting:
Best Regards,
Fancy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is what Fancy_Zou is referring to
from Scripting import AttributeAccess
Product.Attr("Attribute Name").Access = AttributeAccess.ReadOnly
and this will serve your other purpose of showing info why it got disabled.
Product.Attr("Attribute Name").HintFormula = 'Attribute is disabled because of your reason...'
@Denis96 @Fancy_Zou
Thanks,
Akhilesh.
User | Count |
---|---|
54 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.