A Text field is a free-text box. A submitter types a value, and you can constrain its length, allowed characters, and patterns, and reshape its case and spaces when the submission is saved.
When to use it
- Campaign names, product names, or any identifier a person types.
- Free-form descriptions that are not drawn from a controlled list.
- Codes or slugs where you want length, character-set, or pattern rules.
How a value is produced
When a submission is saved, Terminus Hub turns what the submitter typed into the stored value in this order:- Takes the typed value, or the
default_valueif the field was left blank. - Trims leading and trailing whitespace.
- Applies
transform_case. - Applies
transform_spaces.
unique is on, uniqueness is checked against the final stored value.
Settings reference
The
required flag lives on the field itself, not inside settings.
Example
Acampaign_name field in a Campaign URL Builder model:
Black Friday 2026. On save, Terminus Hub trims it, lowercases it to black friday 2026, then replaces spaces with underscores. The stored value is black_friday_2026. That transformed value is what downstream computed fields, such as utm_campaign or a short_url, build on.
Gotchas
- Transforms apply on save, not as you type. The submitter still sees their original input in the form. The transformed result is what gets stored.
- Validation sees the text before transforms. A pattern that requires an underscore will not match a value the submitter typed with a space, even when
transform_spaces: replace_underscorewould later produce one. patternsare typed, not raw regex. Only theregextype treatsvalueas a regular expression.contains,starts,ends, andexcludesare literal string matches. Every pattern needs amessage.replace_customneedscustom_replacement. You cannot save the field withtransform_spaces: replace_customand nocustom_replacement.
Related
- Dropdown field: when the value should come from a fixed list.
- Letting submitters enter new values: a hands-on walkthrough of
suggest_past_values. - Concatenation field: when the value should be built from other fields, including Text fields.
- Fields