Multiple default-values for multi-selection dropdown


#1

Hey,

Is there any way to show drop-down with multiple values pre-selected ?
The dropdown is set to accept multiple values, but passing an array with keys to ‘default_value’ :

default_val = [1, 2]

list_values = {
  'sort_by' => :value,
  'data_type' => :string,
  'values' => { 1 => "ok", 2 => "ok2", 3 => "ok3" },
  'default_value' => default_val
}
list_values.each do |key, value| 
   $evm.object[key] = value
end

doesn’t seem to work.

Greetings