Save btn dosent work

Okay, I’m having an issue with the save button. when I added a new section (CID) to the lightbox it somehow disables the save btn, the delete btn and cancel btn works fine, i have no idea what is wrong. Is it a bug or something?

this is my code

[code]

//this is to create a new type of lightbox section

  scheduler.form_blocks["CID"]={
     render:function(sns){
        return "<div class=\"dhx_cal_ltext\" id='sns.name' style=\"height:60px;\"><textarea rows=\"3\" cols=\"25\"  readonly=\"readonly\"></textarea></div>";
     },
     set_value:function(node,value,ev){
        node.childNodes[1].value=value||"";
        node.childNodes[4].value=ev.details||"";
     },
     get_value:function(node,ev){
        ev.location = node.childNodes[4].value;
        return node.childNodes[1].value;
     },
     focus:function(node){
        var a=node.childNodes[1]; a.select(); a.focus(); 
     }
  }   

//this is to make the CID section hidden
/////////////////////////////////////////////////COMPANY ID STUFF/////////////////////////////////////////////////////////////////

  scheduler.form_blocks.CID.set_value=function(node,value,ev){

var sns = this.config.lightbox.sections;
for (var i = 0; i < sns.length; i++) {
if (sns[i].name == “CID”){
node.firstChild.value = “<?php $cid= $_GET['cid']; echo $cid ?>”;
//alert(node.firstChild.value);
var style = “none”;
node.style.display = style; // editor area
node.previousSibling.style.display = style; //section header
scheduler.setLightboxSize(); //force lightbox auto-sizing
}
}
}

scheduler.config.lightbox.sections = [

			{ name:"name", height:40, map_to:"text", type:"textarea" , focus:true },
                  { name:"details", height:200, map_to:"details", type:"textarea"},
			{ name:"recurring", type:"recurring", map_to:"rec_type", button:"recurring" },
			{ name:"time", height:72, type:"calendar_time", map_to:"auto" },
                  { name:"CID", height:40, map_to:"Company_ID", type:"CID"}
            
		];[/code]

Anyone with similar problems?

when I added a new section (CID) to the lightbox it somehow disables the save btn
That usually means that a control throws an error when the component tries to retreive data from it.
If you open the browser console, you may see error log like following
screencast.com/t/56iFLPWEx

And when you follow the stack trace, you’ll see the line that triggers an error
screencast.com/t/x6bX5k7X

‘node’ in this line refers to ‘dhx_cal_ltext’ element that is created by ‘render’ function, it has only one child element - textarea. So when the code tries to access value of it’s fifth child - it throws an error.

Thanks a lot for your response. It really helped me
:smiley: