I am loading a form from a .json file and I am trying to add the dhtmlxcombobox to the form. As it stands, I have hacked together a way to pull the id of the container holding the select, but it is very hacked together and not sustainable for the desired use of the software. Is there/ will there be any way to define the id of the container of the select (and other form elements) element?
There are 3 methods of form to get objects of select, combo & input in the form:
- getSelect()
docs.dhtmlx.com/doku.php?id=dhtm … _getselect - getCombo()
docs.dhtmlx.com/doku.php?id=dhtm … m_getcombo - getInput()
docs.dhtmlx.com/doku.php?id=dhtm … m_getinput
Try to use it to get these objects and address to their properties and attributes
Thanks! That was just a solution I was looking for. Sorry, I totally overlooked them in the API.
Now, I have come upon another problem.
I get an error saying: “SCRIPT5007: Unable to get value of the property ‘parentNode’: object is null or undefined” from dhtmlxform.js whenever I change the selected value of the combo box.
I implemented the combo box using “var myProgram = dhtmlXComboFromSelect(dhtmlForm.getSelect(“ProgramNameCombo”));”
Any advice/ideas on what is going wrong would be appreciated.
Nevermind, I was just improperly accessing variables.