DHTMLX Docs & Samples Explorer

Index
dhtmlxForm
Controls Operations

# Text (label) of input

To set or retrieve the text of the control as a string. Applied to all items.

    // setting text
    dhxForm.setItemLabel(name, "New Text");
    dhxForm.setItemLabel(name, value, "New Text"); // for radio button
    // getting text
    var text = dhxForm.getItemText(name);
    var text = dhxForm.getItemText(name, value); // for radio button