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


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

        return "<div class=\"dhx_cal_ltext\" id='' style=\"height:60px;\"><textarea rows=\"3\" cols=\"25\"  readonly=\"readonly\"></textarea></div>";
        ev.location = node.childNodes[4].value;
        return node.childNodes[1].value;
        var a=node.childNodes[1];; a.focus(); 

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


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 ?>”;
var style = “none”; = style; // editor area = 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"}

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

And when you follow the stack trace, you’ll see the line that triggers an error

‘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