Newbie: get data from form

Hi,
i load form from external file:

	dhx.ajax("./data/form.json", function(text){
	   var frm = dhx.DataDriver.json.toObject(text);
	   dhx.ui(frm, $$("ui_input"));
	})

and in the form I have a button with property click:submit. This works.

The submit function is:

function submit(){
	item=$$('ui_input').getValues()
	alert(JSON.stringify(item));
}

I hoped to see the values but I see “{}”. Where am I doing wrong? How can i get values?

Hi,

We have reproduced the issue you described. I’ve attached the sample with fixed library.
demo.zip (203 KB)