How do I attach a form to a layout's cell?

In using the new DHTMLX Designer, I’ve gotten ideas for how to put together my latest web project. I then use the code in my regular web pages. I am trying to attach a form into a layout cell.

I have the following code in my web page:

var main_layout = new dhtmlXLayoutObject("divLayout", "2E"); var a = main_layout.cells('a'); formData = [{ type: "settings", position: "label-left" }, { type: "combo", name: "efh_number", labelWidth: "auto", inputWidth: 200, label: "Electronic File History Number: ", imagePath: "../dhtmlxComponents\dhtmlxCombo\codebase\imgs" }]; var form_1 = a.attachForm(formData);
I get the error that “a.attachForm is not a function.” I get the same error if I try the actual code created by the Designer.

What’s going on?

Hi,

please make sure that dhtmlxform.js is attached.