Skip to content
MyAppBuilder
StableFormsVersion 1

Text Input

Overview

A single-line text field for names, titles, references and any short free text. Supports required, length and pattern validation.

When to use

  • Customer or contact name on an intake form
  • Job title, product name or invoice reference
  • A SKU or ticket number that must follow a fixed format
  • A filter box whose value drives a query (bind the query to this input's value)

When not to use

  • Multi-line notes: use Text Area
  • Emails, phones, URLs or numbers: use the dedicated inputs, which validate and show the right mobile keyboard
  • Picking from known values: use Dropdown or Radio

Quick start

  1. Add a Text Input inside a Form
  2. Set Label and the Field key of the entity field it saves to
  3. Turn on Required and set Minimum/Maximum characters if needed
  4. Optionally add a Validation pattern and a friendly Validation message

Properties

Labeltext (bindable)

The caption shown above the field. Keep it short and specific ("Work email", not "Email 2"). It is also read by screen readers and used in automatic error messages.

Default: Text Input

Example: Delivery address

Field keytext

The key this value is saved under when the form is submitted. To save into an entity field, use that field's key exactly (lowercase, underscores). Inputs without a key are not included in the saved record.

Default: text

Example: phone_number

Two inputs with the same key overwrite each other. Keys must start with a letter and contain only lowercase letters, digits and underscores.

Placeholdertext (bindable)

Grey example text shown inside the empty field. It disappears as soon as the visitor types, so never use it instead of a label.

Example: e.g. +1 555 0100

Help texttext (bindable)

A short hint shown under the field until a validation error replaces it. Use it for format expectations or why you ask for the information.

Example: We only call about your order.

Default valuetext (bindable)

The value the field starts with. It is included when the form is submitted even if the visitor never touches the field. Bind it to pre-fill the text from the current user, a page parameter or the current record.

Example: Bind to Current user → name

Requiredboolean

Blocks submission while the field is empty and shows a red asterisk next to the label. The message is “<Label> is required” unless you set a Validation message.

Default: false

Read onlyboolean (bindable)

Shows the value but prevents editing. Useful for values you pre-fill and want the visitor to see but not change. Bind it to make a field editable only for some roles or statuses.

Default: false

Disabledboolean (bindable)

Greys the field out and skips it from keyboard navigation. Bind it to a condition such as “Status is Closed” to lock a field in context.

Default: false

Minimumnumber

Smallest number of characters accepted. Leave empty for no minimum.

Example: 3

Maximumnumber

Largest number of characters accepted. Leave empty for no maximum.

Example: 120

Validation pattern (regex)text

A regular expression the whole value must match. Checked on submit, after the built-in checks for the input type. Leave empty for no extra rule. An invalid pattern is ignored.

Example: ^[A-Z]{2}-\d{4}$

Test patterns in Preview: a pattern that never matches blocks every submission.

Validation messagetext

Replaces every automatic error for this field (required, length, format, pattern) with your own wording. Say what to do, not what went wrong: “Enter your 10-digit account number”.

Example: Use the format AB-1234

Data binding

Inside a Form, the value is submitted under its Field key. Outside a form the value lives in the component's state (value) and can be used by other components, for example as the search of a Table's query.

Properties that can use dynamic data: Label, Placeholder, Help text, Default value, Read only, Disabled.

Events

On change
Runs every time the text changes. The new value is available as Event → value. Typical uses: Set State to drive a filter or a visibility rule, Show Toast for instant feedback. Avoid slow actions (API calls) on every keystroke.
On focus
Runs when the visitor enters the field (click or Tab). Useful for showing contextual help or opening a drawer with instructions.
On blur
Runs when the visitor leaves the field. A good moment to run lookups (e.g. fetch customer details once an email is complete) because it fires once instead of on every keystroke.

Actions

Open the Actions tab in the inspector, pick an event and add actions such as Go to page, Create record or Show message. Actions run in order; data-changing actions run on the server with the signed-in user's permissions.

Other components can read this component's value from the Data Picker → Component state.

Responsive behavior

Uses 6 of 12 columns by default. In the Responsive tab you can change visibility, span, dimensions, padding, margin, font, order, alignment, direction separately for tablet and mobile.

Permissions

Use the Permissions tab to show this component only to some roles. Hiding a component is a convenience, not security — the server always checks who may read or change data.

Accessibility

  • Always provide a Label; help text and errors are linked to the field for screen readers

Examples

Order reference with a fixed format

Example
Label: Order reference
Field key: reference
Required: on
Minimum: 7 · Maximum: 7
Validation pattern: ^[A-Z]{2}-\d{4}$
Validation message: Use the format AB-1234

Common patterns

  • Minimum 2 characters on a name field to stop single-letter entries
  • Pattern ^[0-9A-Za-z-]+$ to allow only letters, digits and dashes in codes

Troubleshooting

The pattern rejects valid values

Why: The regex matches only part of the value or forgets anchors

Fix: Wrap the pattern in ^ and $ and test it in Preview with real examples

Minimum/Maximum seem ignored

Why: For text inputs they count characters, not numeric value

Fix: Use Number for numeric ranges

Related

Was this helpful?