Was just working on a driver and ran across this issue. I'm not sure if its a 2.0.8 but or existed before.
With the following input, if I select multiple items and click save preferences, the updated screen does not show the currently selected items in the input.
input(name:"volumeStream",type:"enum",title:"Volume Stream",
options:["0":"Voice Call","1":"System","2":"Ring","3":"Music","4":"Alarm","5":"Notification","6":"Bluetooth","7":"System Enforced","8":"DTMF","9":"TTS","10":"Accessibility"],
defaultValue:["3"],required:true,multiple:true)
Multiple in devices is not supported at this point. It's on the list.
Ahh... ok. I'll change it to single for now I guess.
It does work though code wise. The setting variable is set properly. It just doesn't show on the device page what is selected. But good to know.
+1 for this feature request.
codahq
April 27, 2019, 5:45am
5
I had this question previously and you even responded. Hopefully it can be added/fixed at some point. It works in apps as you pointed out.
Hey, everybody. I have a driver with a preference defined like this:
input name: "receiverZones", type: "enum", title: "Zones", required: true, multiple: true, options: ["Main_Zone","Zone_B","Zone_2","Zone_3","Zone_4"]
If I iterate through the selected preferences like this:
settings.receiverZones.each { log.debug it }
Then I'm getting some weirdness. When multiple options are selected it is behaving as expected and I would get the multiple options. When only one option is selected instea…