Form 3.0 (beta) don't work with calendar method

Hi all!

The problem is as follows:

I have created form3.0 with a calendar item, but setting date in it using method setDate does not show value in the item. Function getDate() is working, and it returns value setted by method setDate().

Code:

Experiment
  <script src="dhtmlx/dhtmlxcommon.js" type="text/javascript"></script>
  <script src="dhtmlx/layout/dhtmlxlayout.js" type="text/javascript"></script>
  <script src="dhtmlx/layout/dhtmlxcontainer.js" type="text/javascript"></script>
<script src="dhtmlx/calendar/dhtmlxcalendar.js"></script>
<script src="dhtmlx/calendar/ext/dhtmlxtimepicker.js"></script>
<script src="dhtmlx/form/dhtmlxform.js"></script>
<script src="dhtmlx/form/ext/dhtmlxform_item_calendar.js"></script>

Hello,

you may set the value to a calendar this way:
{type:‘calendar’, name:‘calendar_item’,label:‘Calendar’,value:‘2001-01-01’,readonly:false}

It doesn’t work. :frowning:

And I need in setting values in runtime

Hello,

Please replace your form.js and dhtmlxform_item_calendar.js with the attached
form.zip (18.8 KB)

thanks :slight_smile: