DHTMLX Docs & Samples Explorer

Text (label) of input

To set(get) the text of an item as a string, use the setItemLabel/getItemLabel methods.
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.getItemLabel(name);
var text = dhxForm.getItemLabel(name, value); // for radio button