DHTMLX Docs & Samples Explorer

Item Existence

To get whether an item exists.
Applied to all items.

formdata = [{type: "password", name: 'pass', label: 'Password:'},
             ...];
 
var myForm = new dhtmlXForm("form_container",formData);
var exists = myForm.isItem("pass"); // for radio buttons 2nd argument value should be passed
 
if (exists) 
      {myForm.getItemValue("pass");}

Returns true if item exists.