getValues returns empty object.

Hi All,

I am dynamically building a form with the following syntax.

webix.ui(formInputs, $$(‘characteristic-details-form’));

When I try $$(‘characteristic-details-form’).getValues() I get an empty object.

Oddly enough I found this example that seems to behave the same way. Any thoughts will be appreciated!

http://docs.webix.com/samples/01_layout/13_reconfiguration.html

If you open a console window and do $$(‘myform’).getValues() you get an empty object even if you add values to the fields.

Thanks in advance.

Mike Kowalski

The above sample is a bit misleading, you need to have “name” attributes on all inputs. Inputs without “name” attribute will not be included in the result of getValues call.

http://webix.com/snippet/8b691fa7

Perfect! That was what I was missing. Thank you for the quick response.