[BUG] [Webix 3.2] - Form fields IDs and names not working

The parameters id and name of all my fields are just ignored after the upgrade to the new version.
example:
http://webix.com/snippet/50cedc32

Inspect the element and you will see that the ID is random and there’s no name parameter. Am I doing something wrong?

I don’t see any problem here. Please, check the log in the following snippet:

http://webix.com/snippet/4e9df72c

…but the created input-element does not contain the ‘name’ attribute, and the ‘id’ attribute is a large integer number, not the string ‘test’.

Which I think is what Nom4d3 is asking for. (I don’t know how Webix used to render this in versions prior to 3.2)

The name attribute was the main problem. I had to change several scripts to not search by name anymore but by the div with the ‘name’ then get the field.

I was worried about the form not working anymore, but I could see that a new hidden form is created with the correct names when submitted.

This change just make some stuff a bit harder to work, specially selectors.

Hi, sorry for the inconvenience. The behavior really changed, but it was a not-documented detail of inner implementation. In versions before 3.2 we really have used the value of “name” attribute as input’s id. It works fine, unless you have few inputs with the same name on a page, in such case click behavior is broken. To fix this issue we have switched to randomized ids.

If necessary, you can use “css” property to define the per item css class, that can be used for item location. Or use the js API

$$(id).getNode(); //div
$$(id).getInputNode(); //input

understood! Thank you!