How to restrict word limit in google form?
While designing Google Form we may need to restrict user to answer question under specified character or words limit. Though Microsoft form does not have this functionality as of now. From my personal experience, Google Forms are much better than MS Forms.
If you want to collect input in your organization use MS Form. But if you want to collect inputs from external users, my suggestion would be for Google Form.
To set character or word limit for your question(specially for short answer type) in Google Form ,we will use regex (regular expression).
Regex for character limit- [\w]{1,200}
Regex for word limit- ^[-\w]+(?:\W+[-\w]+){1,200}\W*$
For character limit I have used character range 1 to 200. You can set your range as per your need. Similarly you can set a range for word limits.
Please follow below steps-
- Open your Google form via link
- In question, click on 3 vertical dots & click on ‘Response Validation’-
- Select Regular expression
- Choose- Matches
- Your regular expression : in my case, [\w]{1,200}
- Warning message: Characters limit exceeded.
- Similarly you can setup response validation regex for words limit.
- Outcome-
Additional Inputs-
Other useful Regex-
- For Email Address- [a-zA-Z0-9_\.\+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-\.]+
- For ZIP Code (Indian Zip Code)- ^\d{5,6}(?:[-\s]\d{4})?$
– Gopenly Team