DHTMLX Docs & Samples Explorer

attachForm(formData)

adds a dhtmlxForm object to the pop-up window

  • formData - (object) a JSON object with form structure.
var myPop = new dhtmlXPopup({ ... });
var myForm = myPop.attachForm([
	{type: "input",    label: "Email Address", name: "email"},
	{type: "password", label: "Password",      name: "pwd"}
]);

The parameter is optional. If you need, you can load the form's data later, e.g. with the loadStruct() method.

Related resources