attachForm

adds a form object to the popup

dhtmlXForm attachForm(object formData);

Parameters

formDataobjectoptional, form config for api-init

Returns

dhtmlXFormdhtmlXForm instance

Example

var myPop = new dhtmlXPopup(...);
var myForm = myPop.attachForm([
    {type: "input", label: "Email Address", name: "email"},
    {type: "password", label: "Password", name: "pwd"}
]);

Back to top