Instead of returning the value
...
itself, create a
...
new AttributedResult instance, provide values/options for the dropdown list, and return it.
paste-code-macro | ||
---|---|---|
| ||
def selectedPrice = 9.99 def options = [9.99 , 19.99 , 29.99 ] return api.attributedResult(selectedPrice) .withManualOverrideValueOptions(options) |