Calendar in form error

Hello,

trying to use Form 3 and add a calendar field to it.

{type:"fieldset", name:"personalinfo",label:"Personal information",inputwidth:"auto", list:[
                                {type:"input",name:"pname",label:"Name",validate:"NotEmpty"},
                                {type:"input",name:"mname",label:"Middle"},
                                {type:"input",name:"psurname",label:"Surname",validate:"NotEmpty"},
                                {type:"calendar",name:"birthdate",label:"Birthdate"}
                            ]
			   }

When trying to test the form I get this error :

Message: 'null' is null or not an object
Line: 788
Char: 487
Code: 0
URI: http://localhost/dhtml/codebase/dhtmlx.js

If I remove calendar field then form works fine.

I have used libcompiler and I include a single dhtmlx.js file

Thank you

And this is what I get from chrome:

Uncaught TypeError: Cannot read property '0' of null
dhtmlXForm.items.calendar.strToDatedhtmlx.js:789
dhtmlXForm.items.calendar.setValuedhtmlx.js:789
doWithItemdhtmlx.js:692
setItemValuedhtmlx.js:697
cleardhtmlx.js:703
cleardhtmlx.js:704
(anonymous function)ma_MANAGE_CUSTOMERS.php:291
a.eventCatcher.ddhtmlx.js:43
a.callEventdhtmlx.js:43
obj.onclick

Please close thread, problem solved.

It’s related to the the form.

If I call myForm.clear() and I have “calendar” field in form then I get this error.