Validation Rules

Validation ensures respondents provide data in the correct format before submitting. Set rules on individual fields: required, min/max length, patterns, and custom error messages.

Setting validation

  1. Click any field on the canvas
  2. Open the Validation section in the right panel
  3. Add rules

Common validation rules

Required

Toggle Required on to prevent submission without this field. A red asterisk (*) appears next to the field label.

Text validation

RuleDescriptionExample
Min lengthMinimum charactersMin 2 for names
Max lengthMaximum charactersMax 500 for messages
Pattern (regex)Must match a regular expressionEmail format, phone format
Exact matchMust equal a specific valueConfirmation fields

Number validation

RuleDescription
Min valueNumber must be at least this value
Max valueNumber must not exceed this value
Integer onlyNo decimal values
StepMust be a multiple of this value (e.g., step 5: only 5, 10, 15...)

Date validation

RuleDescription
Not in pastOnly future dates
Not in futureOnly past or present dates
After dateMust be after a specific date
Before dateMust be before a specific date

File upload validation

RuleDescription
Allowed typesRestrict file types (e.g., PDF only, images only)
Max file sizeMaximum size per file (e.g., 10MB)
Max filesMaximum number of files

Custom error messages

Each validation rule has a default error message. Override it for a better user experience:

DefaultCustom
"This field is required""Please enter your email address"
"Value is too short""Company name must be at least 2 characters"
"Invalid format""Please enter a valid US phone number (e.g., 555-123-4567)"

Set custom messages in the Error message field below each validation rule.

Cross-field validation

Validate fields against each other:

RuleConfiguration
End date after start dateEnd date: "After" → reference Start date field
Confirm email matchesConfirm email: "Exact match" → reference Email field
Max total quantityCalculated field that sums quantities, validated to be under a max

Validation timing

WhenBehavior
On blurValidates when the user clicks away from the field. Default behavior.
On submitValidates only when the submit button is clicked. All errors shown at once.
Real-timeValidates as the user types (for pattern matching). Shows a checkmark when valid.

Configure per-field in Validation → Trigger.

Visual feedback

When validation fails:

  • The field border turns red
  • The error message appears below the field in red text
  • The form cannot be submitted until all errors are resolved
  • A summary of errors appears at the top of the form (if multiple errors)

When validation passes:

  • The field border returns to default
  • A green checkmark appears (if real-time validation is enabled)

Common validation patterns

FieldRules
EmailRequired + pattern (email format)
PhonePattern (phone format for target country)
PasswordMin 8 chars + pattern (at least 1 uppercase, 1 number)
URLPattern (starts with http:// or https://)
Zip codePattern (5 digits or ZIP+4 format)
AgeRequired + min 18 + max 120
Tip

Write custom error messages that tell the user what to do, not just what went wrong. "Please enter a valid email address (e.g., name@company.com)" is more helpful than "Invalid format."

Note

Validation is client-side for instant feedback, but all rules are also enforced server-side. Users cannot bypass validation by modifying the browser.