Response Validation in Google Forms: Numbers, Text, Email, Length

Quick answer: Click a Short answer or Paragraph question, open the ⋮ menu, and choose Response validation. Pick a type — Number, Text, Length, or Regular expression — set the condition, and write a custom error message. Google Forms then blocks submission until the answer matches your rule.

Free-text questions are the easiest place for messy data to sneak into a form — a phone number typed with letters in it, an email missing the "@," or a comment field that runs on for a thousand words. Google Forms' built-in response validation catches these before submission, rejecting an answer and showing an error message until it fits the rule you set. This guide walks through every validation type, how to write error messages people actually understand, and where validation's limits are.

How to turn on response validation

  1. Click a Short answer or Paragraph question — these two text question types have the full set of validation rules (Checkboxes has its own, simpler version, covered below).
  2. Click the three-dot menu (⋮) at the bottom of the question box.
  3. Select "Response validation." A new row appears under the question with a dropdown for the validation category.
  4. Choose a validation type and set the specific condition and value. Short answer offers Number, Text, Length, and Regular expression; Paragraph offers Length and Regular expression.
  5. Add a custom error message in the "Custom error text" field so respondents understand exactly what went wrong and how to fix it.

The validation types, explained

Writing a helpful custom error message

The default error text Google Forms shows is generic ("Response must be a number," for example), which doesn't always tell a respondent what actually went wrong on their end. Always fill in the Custom error text field with something specific and actionable — for instance, instead of leaving the default in place, write "Please enter a number between 1 and 10" or "Please use your company email ending in @yourcompany.com." A clear, specific message saves respondents a guessing game and reduces abandoned forms.

Real examples

Validation limitations

Response validation only evaluates a single question against its own rule — it has no awareness of any other question on the form. That means you can't set up a rule that checks whether two fields match each other, such as confirming a "Confirm email" field is identical to the "Email" field above it, or that an "End date" comes after a "Start date." If you need cross-question logic like that, you'll either need to accept the limitation, use a workaround like combining both pieces of information into one instruction-heavy question, or handle that kind of validation downstream once responses land in a connected Google Sheet.

Text validation also only applies to Short answer and Paragraph questions. Checkboxes questions have a separate response validation option that controls how many boxes can be ticked ("Select at least," "Select at most," "Select exactly"). Multiple choice, dropdown, and linear scale questions have no validation option because respondents already pick exactly one fixed choice. The two fields people most often want to constrain are covered in their own guides, since both have format traps worth knowing about: phone number validation and collecting addresses.

Which validation type fits which situation

You want to checkUse this validation typeExample condition
An age or quantity within a rangeNumberBetween 1 and 120
A properly formatted emailTextIs email address
A comment field doesn't run too longLengthMaximum character count: 500
A field isn't left nearly blankLengthMinimum character count: 10
A custom format like an ID or phone numberRegular expressionMatches a custom pattern
Restricting to a company domainRegular expressionMatches @yourcompany.com

Troubleshooting response validation

  1. The validation option doesn't appear in the three-dot menu. Confirm the question is Short answer, Paragraph, or Checkboxes — validation isn't offered on multiple choice, dropdown, or linear scale questions. If you see fewer types than expected, check whether the question is Paragraph, which only offers Length and Regular expression.
  2. A regular expression pattern isn't rejecting invalid input as expected. Test the pattern in a separate regex tester first; Google Forms uses standard regex syntax, so a pattern that's subtly wrong (missing anchors like ^ and $) can match more than intended.
  3. Respondents are confused by the error message. Replace the default error text with a specific instruction — state the exact format or range expected rather than leaving Google's generic message in place.
  4. You need to validate a file's size or type, not text. Response validation doesn't apply to file upload questions at all; instead see our guide on Google Forms file upload size limits for what's actually enforced there.
  5. You want required and validated together. Turn on both — the Required toggle and a validation rule are independent settings that combine on the same question. See our guide on making a question required for how the two interact.

Checkbox validation: limiting how many options people pick

Checkboxes questions have their own response validation, separate from the text rules above. It answers a different problem: "pick your top three," "choose at least one session," or "select exactly two workshop slots."

  1. Click a Checkboxes question and open its three-dot menu.
  2. Choose Response validation.
  3. Pick Select at least, Select at most, or Select exactly, and type the number.
  4. Fill in Custom error text, for example "Please choose exactly 2 sessions."

Tell people the rule in the question title too ("Choose up to 3"), so they don't discover it only after clicking Next. For limiting how many people can pick an option (seats in a session), validation is the wrong tool; see limiting choices by availability.

A regular expression cheat sheet for common fields

Use Regular expression → Matches for all of these, and keep the ^ and $ anchors so the pattern has to cover the whole answer. Test each in Preview with a few good and bad inputs before sharing.

FieldPatternAccepts / rejects
US ZIP code (5 or ZIP+4)^\d{5}(-\d{4})?$Accepts 02139 and 02139-4307; rejects 2139
US phone, 10 digits, common punctuation^\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$Accepts (555) 123-4567 and 555.123.4567; rejects numbers with a +1 prefix — adjust if you need it
Student or employee ID, exactly 6 digits^\d{6}$Accepts 004512; rejects 4512 and A04512
Order number like FM-12345^FM-\d{5}$Case-sensitive: rejects fm-12345
Two capital letters (US state code)^[A-Z]{2}$Accepts CA; rejects ca and Calif
Letters, spaces, hyphens and apostrophes only (names)^[A-Za-z\s'-]+$Rejects accented letters such as é — usually too strict for real names
Web address starting with https^https://\S+$Accepts https://example.org/page; rejects example.org

Google's help pages list the supported regular expression syntax; it follows common conventions but is not identical to every regex flavor you'll find in online testers, so the Preview test is what counts. Patterns are case-sensitive unless you allow both cases explicitly, for example ^[Ff][Mm]-\d{5}$.

"Contains" vs. "Matches"

Contains passes if the pattern appears anywhere in the answer, so \d{5} under Contains would accept "my zip is 02139, I think." Matches is the one you want for format checks. If you are unsure, adding ^ and $ makes the intent explicit either way.

Number validation details that trip people up

Validation on optional questions

On a question that is not required, a respondent can usually leave it blank and still submit; the rule is checked when they type something. That's normally what you want ("phone number optional, but if you give one it must be valid"). If the field must be filled and valid, turn on Required as well.

Don't use validation to grade a quiz

It's tempting to put Text → Contains "photosynthesis" on a quiz short answer. Don't: the form will refuse every wrong answer and show your error message, which tells students their answer is wrong before they submit and lets them keep guessing until it passes. Use the quiz Answer key instead, which grades after submission. Validation in quizzes should only check format, such as "enter a whole number" on a math question. Our self-grading quiz guide covers answer keys, including how short answers are matched.

Cross-question checks after the fact, in Google Sheets

Because validation can't compare two questions, the practical fallback is a check column in the linked spreadsheet. Two examples, assuming responses land on a tab named "Form Responses 1" (adjust column letters to your sheet):

Then filter for MISMATCH or CHECK and follow up. Often a better fix is to remove the need for the check: a single email question with Collect email addresses set to Verified removes the "confirm email" question entirely. See linking Google Forms to Sheets for setting up the spreadsheet.

Use cases by audience

Accessibility and respondent experience

Common mistakes

Where FormMaker fits

FormMaker drafts the form for you — with AI or from a template — and saves it as a real Google Form in your Google account. Once it's created, you can open it in the Google Forms editor and add any of the validation rules on this page, which work the same as on a form built by hand.

FAQ

Which question types support response validation?

Short answer and Paragraph questions support text validation, and Checkboxes questions support a selection-count rule (select at least, at most, or exactly a number of options). Multiple choice, dropdown, and linear scale questions have no validation option.

Can I validate that an answer matches a specific format like a phone number?

Yes, using the Regular expression validation option. You can write a pattern that matches a loose phone number format and pair it with a custom error message explaining the expected format.

Can Google Forms validate one answer against another question?

No. Response validation only checks a single question's own answer against its own rule. It cannot compare two different questions to each other, such as confirming two email fields match.

What happens if a respondent enters an invalid answer?

Google Forms shows your custom error message (or a default one) directly under the question and blocks submission until the respondent corrects the answer to match the validation rule.

Can I use response validation and the Required toggle on the same question?

Yes. The two settings are independent and stack: Required guarantees the field isn't left blank, while response validation separately checks that whatever was entered matches your format rule.

Can I limit how many checkboxes someone selects?

Yes. On a Checkboxes question, open the three-dot menu, choose Response validation, and pick Select at least, Select at most, or Select exactly with a number. Add custom error text explaining the limit.

Is regular expression validation case-sensitive?

Yes, patterns are case-sensitive by default. To accept both cases, include both explicitly, for example [Aa] for a single letter, and test the pattern in Preview.

Should I use response validation to check quiz answers?

No. Validation blocks wrong answers before submission and reveals that they are wrong. Use the quiz answer key to grade answers after submission, and keep validation for format checks such as whole numbers.

Related guides