DHTMLX Docs & Samples Explorer

dhtmlXForm(parentObj, listData)

Constructor. Creates a new dhtmlxForm instance.

Parameters:

  • parentObj - an id or an object that will be used as parent container;
  • listData - specifies items if object init is used (optional)
  • connector - the url to the connector (optional)
var dhxForm = new dhtmlXForm("parentId");
var dhxForm = new dhtmlXForm("parentId", "some.php");
dhxForm.load(someID);
var listData = [
        {type:"radio", name:"color", value:"r", checked:true, label:"Red"},
        {type:"radio", name:"color", value:"g", label:"Green"},
        {type:"radio", name:"color", value:"b", label:"Blue"}
    ];
var dhxForm = new dhtmlXForm("parentId", listData);
var dhxForm = new dhtmlXForm("parentId", listData , "some.php");
dhxForm.load(someID);