Skip to content

Short Text field

Use Short Text for one short typed answer, such as an employee ID, city, or job title.

Short Text v2 settings drawer.

Email validation: use the Email field

If the answer must be an email address, add the dedicated Email field instead of a Short Text field. Select Fields > Contact > Email; the Email field applies the product’s email validation. Set Required Field when the address is mandatory and provide a helpful Custom error text.

Custom regex pattern (v2)

Short Text supports a custom pattern through Accepted data type. Select Pattern, then enter the regular expression in the regular expression input that appears in the dropdown. Confirm the value with Enter or by leaving the input, then preview and test both matching and non-matching values.

Short Text Accepted data type menu with Pattern and its regular-expression input.

For example, the exact pattern for values like ABC-123-done is:

regex
^ABC-[0-9]{3}-done$

This means: the literal prefix ABC-, exactly three digits, the literal suffix -done, and nothing before or after. Do not paste the expression into the label, placeholder, or custom error text; it belongs in the Pattern validator’s regular expression input.

Example tests:

  • Accepted: ABC-123-done
  • Rejected: ABC-12-done, abc-123-done, ABC-123-DONE, or ABC-123-done

Pattern validation is client-side form validation. If the value protects an external operation or security decision, validate it again in the receiving server or integration.

Example: required employee ID

  1. Open your form and select Fields.
  2. In General, select Short Text. It is added to the active page; drag it when you need a different position.
  3. Select the new field, then select Edit.
  4. Change its visible label to Employee ID.
  5. Set Name to employee_id. This is the internal reference used by responses, rules, emails, and workflows.
  6. Select the placeholder text in the field and enter For example, EMP-1042.
  7. In Validation, turn on Required Field.
  8. If the ID has a fixed length, set Min length and Max length; otherwise leave them blank.
  9. Set Custom error text to Enter your employee ID.
  10. Select Preview. Try submitting an empty value, then submit EMP-1042.

Every applicable setting

SettingWhat to enter or choose
LabelThe question respondents see: Employee ID.
NameA stable internal identifier: employee_id.
PlaceholderA short example, not the only instruction.
Required FieldTurn on when the answer is essential.
Unique ValueTurn on only for an ID that must appear in one submission only.
Accepted data typeUse only when a specific answer format is required.
Min / Max lengthUse for fixed-length identifiers.
Min / Max valueUse only for numeric values.
Custom error textTell the respondent how to correct the answer.
AppearanceAdjust field typography, colors, borders, and label placement only when the form design requires it.

Expected result

The form shows one required Employee ID input. An empty submission is blocked; EMP-1042 is accepted.

Build better forms with AbcSubmit.