Instead of returning the value itself, create a new AttributedResult instance, provide values/options for the dropdown list, and return it.

def selectedPrice = 9.99
def options = [9.99 , 19.99 , 29.99 ]
return api.attributedResult(selectedPrice)
	.withManualOverrideValueOptions(options)