Skip to main content


A control for adding some text.


Related sample: Form. All DhxForm Inputs

Adding Text#

You can easily add a Text control during initialization of a form:

var form = new dhx.Form("form_container", {    rows: [        {            type: "text",            name: "text",            label: "text",                                  value: "I am a nice text"        }    ]});


View the full list of configuration properties of the Text control.

Working with Text#

You can manipulate a Text control by using methods or events of the object returned by the getItem() method.

For example, you can get the value of the control:

var value = form.getItem("text").getValue();


Check the full list of methods of the Text control.


Check the full list of events of the Text control.