dhtmlxform and combo

Hi,

i’m trying to use a combobox in a dhtmlxform control, using JSON as following:

{type:“combo”,id:“TEMPORARY_FACILITY”,name:94,label:“TEMPORARY_FACILITY”,readonly:“readonly”,options:[
{value: “Blank”, label: “Blank”, selected:true},
{value: “Y”, label: “Yes”},
{value: “N”, label: “No”}
]},

I have two questions:

  • How can I make this combo read only? the instruction readonly:“readonly” doesn’t work.

  • We want to have an option selected based on the value retrieved from a select and that will be stored in a variable and that will be one of the possible values on the combo.

Thanks,
Eduardo.

Hello,

please use attached fixed files (v.3.0).
dhtmlxform_item_combo.js.zip (1.19 KB)

Hi Andrei,

i used the library provided but the combo is not yet readonly.

Do i need perform something more?

Thanks,
Eduardo.

I am experiencing what appears like the same problem

detail.getCombo('status').readonly(true,true);  // doesn't work

var s = detail.getCombo('status');
s.readonly(true,true);                                   // doesn't work

detail.doWithItem("status", "setReadOnly", true); // doesn't work

Please advise.

Hi
Locally it works fine
Please, provide us completed demo to reproduce the issue
docs.dhtmlx.com/doku.php?id=othe … leted_demo