Undefined values select box

Hi,

I’m trying to load some values in a select box, but it always show me undefined value, any idea?

The array types have 3 items at this point, but the select box just show me 3 undefined items.

var types = [];

...

         {
				name : "type",
				height : 23,
				type : "select",
				options :  types
			}

Thanks.

“types” must contain not a plain values, but key-label objects

var types = [ {key:1, label:"Simple"}, {key:2, label:"Complex"}, {key:3, label:"Unknown"} ];

Thanks, it works :slight_smile: