Form 3 - Calendar options not working from XML file load

Hi there. I want to set the options of the calander (for example “isMonthEditable: true”). Thru a xml file. Is this possible ?

Here’s the code. Calendar is showing up, but isMonthEditable and dateFormat are NOT working…

XML:

<item type="calendar" dateFormat="%Y-%m-%d" name="GeboorteDatum" label="Geboortedatum" bind="GeboorteDatum" readonly="true" isMonthEditable="true"/>

Hi,

there is a problem with setting options in form is configured from xml. We’ll fix the problem in the Suite 3.0. Currently please use JSON configuration:

form/samples/02_items/09_calendar.html

To load data you may use dhtmlxAjax:

[code]dhtmlxAjax.get(“some.php”,outputResponse);

function outputResponse(loader){
if(loader.xmlDoc.responseXML!=null){
eval (“formData=”+data);
myForm = new dhtmlXForm(“myForm”, formData);
}
});[/code]

Thank you for your reply !

I will use json instead :slight_smile: