TextFieldDefinition  renders an editable text field. When the rows property is 1 or unspecified, Magnolia renders an HTML input element of type text. When rows is greater than 1, Magnolia renders a textarea.

Class: info.magnolia.ui.form.field.definition.TextFieldDefinition

Here is an example text field definition from the Contacts app.

Node name






Please enter the contact first name. Field is mandatory


First name



You can use all common field properties and the following.

PropertyDescriptionDefault value
rowsNumber of text rows.1
maxLengthDefine the maximum number of characters in the field. Value -1 is considered unlimited.-1

(warning) 5.0+ The width property is no longer supported. Field width is now defined by CSS.

New 6UI content.

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels