How to Validate Responses in Google Forms
If you use Google Forms and want to make sure answers fall within certain parameters, you can use the Response Validation feature. When an answer doesn’t meet your criteria, you can display a custom error message.
Source: howtogeek.com