There's a method Object option(String entryName, List<Object> options, Map<String,Object> labels)
which allows you to set values' labels in the drop-down. To set these labels when adding the drop-down in a quote header logic, use the following examples.
This is a header level drop-down with options (just the list of values):
def endCustomerList = [ "customer1", "customer2", "customer3", "customer4", "customer5", "customer6" ] quoteProcessor.addOrUpdateInput("ROOT", ["name" : "Requestor", "label" : "Requestor", "type" : InputType.OPTIONS, "valueOptions" : endCustomerList, ])
Now you need to split names and labels. To do so, put the labels into the field "parameterConfig" as a sub-map with the name "labels":
def labels = [ "A": "Label A", "B": "Label B" ] quoteProcessor.addOrUpdateInput("ROOT", ["name" : "FreightTerms", "label" : "Freight Terms", "type" : InputType.OPTION, "valueOptions" : options, "parameterConfig": [ "labels": labels ] ])