hideItem(name) does not work with XML loaded form

Hello,
hideItem(name) does not seem to work when form is loaded using XML with an item with name=“A”. However, similar functionality works fine when formData is defined within Javascript. Am i missing something?

function doOnLoad() {
	myForm = new dhtmlXForm("myForm");
	myForm.loadStruct("../common/dhxform.xml?e="+new Date().getTime());
	myForm.hideItem("A");
}

Change your code like the following:

function doOnLoad() { myForm = new dhtmlXForm("myForm"); myForm.loadStruct("../common/dhxform.xml?e="+new Date().getTime(),function(){ myForm.hideItem("A"); }); }