Hello to all,
I´ve got a problem to get the selected values from combo box with checkbox. I use combo box combined with dhtmlx form and load the options from xml. This works fine. If an option is selected (not checked), I can get the selected value by myForm.getItemValue(“myCombo”). This works fine, but how can I get the values of checked items by checkbox? When I use the getCheck() method, I get an error in console, that getChecked is not a function. Can anybody help me?
Thanks
You need to get the combo object of the combo item of your form at first
var dhxCombo = myForm.getCombo("myCombo");
https://docs.dhtmlx.com/form__controls_list.html#combo
Then you can use the API of the dhtmlxCombo to apply to that object:
dhxCombo .getChecked();