Text area

Use a text area when you need a multi-line field for longer answers in forms.

Visitors usually see single-line fields for search and short answers. Long copy on pages comes from the WYSIWYG component or similar. Authors enter longer strings in component dialogs (for example descriptions) using dialog text areas where the field is plain text.

Behaviour

  • Browser text areas can often be resized by the user unless disabled.
  • Validation messages should appear near the field and describe what to fix.

Anatomy

  1. Label that names the field.
  2. Multi-line input area.
  3. Optional hint or error text below the field.

Text area field (placeholder)

Replace with a labelled text area and optional hint line.

Content guidelines

  • Set character limits that match real needs (not arbitrary short caps).
  • For author dialogs, match field labels to how content will appear on the page.

Best practices

Do

  • Provide rows, max length, and hint text when you add public forms.
  • Validate on the server and, where helpful, on the client for length and safety.

Don't

  • Don't block paste without a strong reason.

When to use

  • Authors: Long plain text in a component dialog when rich text is not required.
  • Visitors: Only when a flow truly needs free-form multi-line input (often custom forms; follow security and privacy review).

When not to use

  • Short answers; use a single-line field.
  • Formatted marketing copy; use WYSIWYG.

CRXDE Lite query

Use this query in CRXDE Lite to find instances of this component.

/jcr:root/content//*[@sling:resourceType = 'concordia/components/wysiwyg/wysiwyg.jsp']
PatternWhere
RTE bodyapps/concordia/components/wysiwyg/wysiwyg.jsp
Dialog textareasVarious _cq_dialog/.content.xml files (Granite textarea)

Visitor-facing forms in this library more often use single-line inputs; multi-line author content is typically RTE or dialog textarea widgets.