I am stuck on a bit of functionality I’m hoping someone can help with. I am trying to load options to an existing select box with data from a jsonArray. I have tried using myForm.addItem() and myForm.reloadOptions(), but neither option is working as expected.
Any ideas on what I may be doing wrong, or is there a way to make it work properly?
Hello
First of all you need to chek if you have an extention dhtmlxform_dyn.js included.
There is no public method to add items in select, but i can share a demo with you with some features of work-around approach 13.10.28.rar (51.7 KB)
Yes I have dhtmlxform_dyn.js included. When using reloadOptions(), I have tried passing the function a string in both XML and JSON for data (options to add) and the error I get is this:
SCRIPT438: Object doesn’t support property or method ‘reloadOptions’