Would someone mind explaining how I would go about using a grouped combo in a dhtmlxForm please.
Many Thanks,
Heather
Would someone mind explaining how I would go about using a grouped combo in a dhtmlxForm please.
Many Thanks,
Heather
You may get a combo object by getCombo(itemName) and then apply combo API you need. For example you may attach onChange event handler to the parent combo and reload the child combo when the former gets changed:
[code]var parentCombo = myform.getCombo(“parent_combo”);
var childCombo = myform.getCombo(“parent_combo”);
parentCombo.attachEvent(“onChange”,function(){
var value = this.getActualValue();
childCombo.clearAll(true);
childCombo.loadXML(url+"?parent="+value);
})[/code]