unload form from lightbox

TypeError: Result of expression ‘this.detachAllEvents’ [undefined] is not a function. dhtmlxform.js:684

var formData = [ {type: "checkbox", label: "Загальний аналіз крові з лейкоцитарною формулою", name:"BLOOD", position: "label-right", checked: false, list:[ {type: "select", label: "форма №", name:"FormB", options:[ {text: "", selected: true}, {value: "224", text: "224/о "} ]}, {type: "newcolumn"}, {type: "button", value: "+"}, {type: "newcolumn"}, {type: "button", value: "Направление"} ]} ];
detach all except checbox with label :confused:
but in sample “06_unload.html” with my form data working well ???

Unfortunately we cannot reproduce this issue locally

detach all except checbox with label
Can you please provide code snapshot of using unload() method?

[code] scheduler.config.xml_date=“%Y-%m-%d %H:%i”;
scheduler.config.details_on_dblclick=true;
scheduler.init(‘scheduler_here’,null,“week”);

 var formData = [
		{type: "checkbox", label: "Загальний аналіз крові з лейкоцитарною формулою", name:"BLOOD", position: "label-right", checked: false, list:[
		{type: "select", label: "форма  №", name:"FormB",  options:[
					{text: "", selected: true},
					{value: "224", text: "224/о "}
					]},
					{type: "newcolumn"},
				{type: "button", value: "+"},
				{type: "newcolumn"},
				{type: "button", value: "Направление"}
		]}
    ];

 
    scheduler.form_blocks["form"] = {
		
        render:function(sns) {
	
            return "<div  id='form' style='height: "+sns.height+"px'></div>";
        },
        set_value:function(node,value,ev,config){
            myForm = new dhtmlXForm(node, formData);
        },
        get_value:function(node,ev,config){

        },
        focus:function(node) {
	
        }
    };	
	 scheduler.attachEvent("onAfterLightbox", function (){

if (myForm) {
myForm.unload();
myForm = null;
}
});
}
scheduler.locale.labels.button_help=“Help label”;

    scheduler.config.lightbox.sections=[
     {name:"description", height:130, map_to:"text", type:"textarea" , focus:true},
     {name:"custom", height:200, type:"form", map_to:"section_id" , button:"help"},
     {name:"time", height:72, type:"time", map_to:"auto"}
  ];     
}[/code]




Please check if you have included dhtmlxcommon.js file from dhtmlxForm package.

all included

[code]

<script src="codebase/dhtmlxform.js"></script>
<script src="codebase/dhtmlxscheduler.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="codebase/dhtmlxscheduler.css" type="text/css" media="screen" title="no title" charset="utf-8">[/code]

TypeError: Result of expression ‘this.detachAllEvents’ [undefined] is not a function
dhtmlxform.js:684

Please try to attach dhtmlxscheduler.js before dhtmlxcommon.js (before all other dhx libraries). Scheduler redefines dhtmlxEventable and does not provide detachAllEvents method.

working but what with position: "label-right"
when first time init label is right from checkbox but next form init label is left from checkbox ???

Please attach the completed demo to reproduce the problem (docs.dhtmlx.com/doku.php?id=othe … leted_demo)

fix it just set setting before init main form