Skip to main content
Menu
On this page

Short text

Collect one line of text with an optional character limit.

Rendered by the SDK
@usefillo/react
Interactive local preview. Nothing is submitted.

The short-text field collects one line of text and stores it as a string.

Options

OptionTypeDefaultBehavior
maxLengthnumber2,000 character hard capSets a smaller explicit character limit
placeholderstringnoneShows a hint inside the empty input
requiredbooleanfalseRejects blank or whitespace-only text

Fillo trims leading and trailing whitespace when it validates a response. There's no minLength in the current schema — use required for a non-empty answer, or a custom field for a richer rule.

Add a short-text field

In the dashboard, select Add block, choose Short text, then set the label, placeholder, required state, and character limit.

ts
const nameField = {
  id: "name",
  kind: "short_text",
  label: "Your name",
  required: true,
  maxLength: 120,
  placeholder: "Ada Lovelace",
} as const;
  • Long text: Collect an answer that needs several lines.
  • Fields: Compare every field kind and shared option.
  • Custom UI: Add host-owned validation and rendering when the built-in rule isn't enough.

Updated

Was this page helpful?