Input validation

SwiftSurvey validates respondent answers to ensure data quality. Validation rules are built into each question type and can be customized in the builder.

Built-in validation

  • Required questions — respondents cannot skip a required question. They see a validation message prompting them to answer.
  • Email fields — automatically validated for correct email format.
  • Phone numbers — validated for valid phone format with country code detection.
  • Numbers — can be restricted to a minimum and maximum range.

Custom validation

Open a question in the builder and go to its settings panel. Under Validation, you can set:

  • Minimum and maximum character length for text fields
  • Number range limits
  • Required toggle — make any question mandatory
  • Custom error messages

Respondent experience

When a respondent submits an invalid answer, the question shows a red error message below the input field. They cannot advance until the answer passes validation. Progress is not lost.

Quick links