How to add a manual editable attribute in a LPG, based on restricted fields (like the "option()" in Java for quotes?
Question
I want to add an attribute to an LPG, which allows the user to choose from a dropdown, valid for this specific element.
The manual overwrite is not the issue but the limitation of field values.
Answer
Please see the example here:
The .withManualOverrideValueOptions(myOptions)
part is the essential bit.
def cost = api.getElement("Margin_pct")
def myOptions = ["A" , "B" , "C" ]
return api.attributedResult(cost)
.withManualOverrideValueOptions(myOptions)
, multiple selections available,
Related content
How to Create and Configure New LPG
How to Create and Configure New LPG
Read with this
Interactive Forms - Configurators
Interactive Forms - Configurators
More like this
Inputs Behavior in Quote Revisions
Inputs Behavior in Quote Revisions
Read with this
Add and Modify Columns in Price List/Grid
Add and Modify Columns in Price List/Grid
More like this
Denial Reasons (LPG)
Denial Reasons (LPG)
Read with this
Price Setting Types
Price Setting Types
Read with this
Found an issue in documentation? Write to us.