Use DhtmlxForm in version 2.1

Could someone please explain me if it is possible to use the dhtmlxform in version 2.1?

Greetings Remy

Form was released with 2.5 Suite. So, 2.1 version doesn’t support form.

You may try to use the 2.1 components and 2.6 form of the same page if you use the latest (2.6) dhtmlxcommon.js. Not sure if attachForm works with 2.1 components, however, you may test.

Thanks for you reply.

I already tried that.
I tried the following:
dhxList = new dhtmlXForm(“listObj”, formData);
dhxLayout.cells(“a”).attachObject(dhxList);

Then I get the message that the method is not supported by the object.
And I also tried the following:
dhxList = new dhtmlXForm(“listObj”, formData);
dhxList = dhxLayout.cells(“a”).attachForm();
Now I get the message that the interface is not supported.

Maybe any other options?

The following would be more correct:

dhxLayout.cells(“a”).attachObject(“listObj”);
dhxList = new dhtmlXForm(“listObj”, formData);

attachObject takes the id of html container as a parameter.

In case of attachForm, it should be used in the following way:

dhxList = dhxLayout.cells(“a”).attachForm(formData);