Textarea field

Multi-line free text, for paragraphs, descriptions, notes, and anywhere a single-line text field would overflow.

The Textarea field accepts multi-line free text, descriptions, internal notes, problem reports, anything where the user needs more than one line to express themselves.

It binds to SharePoint's Note column type (also known as Multiple lines of text), with optional rich-text support when the column is configured as RichText.

Common properties

PropertyDescription
label
string
Visible label above the textarea.
description
string
Helper text shown under the label.
placeholder
string
Greyed example text shown when empty.
required
boolean
default: false
Red asterisk + blocks submit if empty.
readOnly
boolean
default: false
Renders the value but blocks editing.
visibleIf
expression
Hide unless the expression returns true.

Type-specific properties

PropertyDescription
rows
number
default: 4
Number of visible lines before scrolling kicks in.
minLength
number
Minimum character count enforced at validation time.
maxLength
number
Maximum character count. SharePoint Note columns accept 63,999 chars by default.
autoResize
boolean
default: false
Grow the box vertically as the user types instead of scrolling.

JavaScript recipes

Get the current value

const notes = f365.field('Notes').value;

Append to the value (e.g. timestamped log entries)

const stamp = new Date().toISOString().slice(0, 16);
const prev = f365.field('Notes').value ?? '';
f365.field('Notes').value = `${prev}\n[${stamp}] ${f365.user.current().displayName}: `;

Validate minimum length

f365.field('Notes').on('validate', (value) => {
  if ((value ?? '').trim().length < 30) {
    return 'Please provide at least 30 characters of context.';
  }
});

Related articles

  • Text field

    Single-line text input, the foundation field for names, codes, and short free-text.