Skip to main content


A control that allows a user to enter a simple multi-line text.

Textarea control

Related sample: Form. All controls

Related sample: Form. Textarea

Adding Textarea

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

const form = new dhx.Form("form_container", {
rows: [
type: "textarea",
label: "textarea",
labelWidth: "70px",
value: "Some nice text",


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

Working with Textarea

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

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

const value = form.getItem("textarea").getValue();


Check the full list of methods of the Textarea control.


Check the full list of events of the Textarea control.