[SOLVED] Single vs multiselect value dropdownn

gaprindashvili

#1

Hi, I am trying to get selected values of my catalog dropdowns (with multiselect option enabled) in my automate methods, but I have no idea how to do that.
I placed 2 dropdowns on my catalog item:
dropdown_list_1 - single value dropdown
dropdown_list_2 - multiselect dropdown

but when i run object_walker I can see only dropdown_list_1 in the output:
$evm.root[‘miq_provision’].options[:dialog_dropdown_list_1]

dropdown_list_2 is not there anywhere. Is there any other way how to get multiselected dropdown values? Because get_option can’t get it here.

Thank you


#2

@gmccullough ?


#3

seems to be already solved in hammer, I’ve found this:
https://github.com/ManageIQ/manageiq-content/commit/0a3a36fa50fdd41710b1839f6e6f0442d6dde710#diff-24e0b2642af7979a9b636a1f31a106f9