Xml structure for dhtmlxCombo

Hi,
I have a dhtmlxCombo in a form that has the following structure:

{
type:"combo",
name:"code",
label:"Code",
options:[{
text:"code1",
value:"1"
},
{
text:"code 2",
value:"2"
},
{
text:"other",
value:"0",
list:[{
type:"input",
name:"other",
label:"Code"
}]
}]
}

I wish to get the options from the database using an xml file.
what is the format of the xml I would need to specify for the “Other” option?

Hi
Here are all xml formats for dhc components:
dhtmlx.com/docs/products/doc … index.html
Find “combo” tab and you will see there cmbo structure and type

Hi,
Thank you for the link, but my query is a bit different.
I want a textfield to appear when i select the “Other” option. Can I specify this in the XML?

No, you can just can add to combo via onChange event popup hint about it (if combo gets as selected value this specific option, it will be message about it). It can be i.e. dhtmlxPopUp
dhtmlx.com/docs/products/dht … index.html

Thanks a lot :slight_smile:

You are welcome!