I want to use the combobox in forms, but have the selection list with checkboxes.
If I use combo by itself this is no problem but how do I integrate this functionality in form ?
I already have the combobox and the extra libraries but now it’s only a matter of getting the checkboxes in the list.
I’m using 3.6 (non-pro).
The stand alone version uses xml, but I’d like to initialize with a list from the form in json.
But hopefully you’ll agree this should be possible in the json file as well.
Otherwise it sort of defeats the purpose of preparing the file on the server and having to build something on the client side just to tick a few options.
(On the server side you’ll know which ones to tick)
The ‘form’ (single) selectbox works like this with json.
I think it should be transparent to the user where it actually comes from (ie if it’s a separate module).
Maybe this can be (more) integrated in the 4.0 release ?
If you need this functionality for current 3.6 please provide completed demo including all corresponding js/css files and I will add it. also you can send your demo to support@dhtmlx.com (please include link to this thread)
This way I am creating the combobox and it works perfectly, I am loading the data from mysql
i use this:
var h = new dhtmlXComboFromSelect(“comboBox”);
h.load(“loadCombo_generica.php?campo=nombres&tabla=centro&campo2=codigo”);
h.enableFilteringMode(true);
h.readonly(true);
I am reading about the issue of combobox, but I do not know how to integrate what I did to make it to checkbox, and then as I do to know what options are marked, I know it’s with getChecked () but a small example would solve my doubts