Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

We need to create a form asking the clients for their age. Is there any way to create a field where you can only fill in numbers - maybe only 4 numbers like 1976 or 2011?

Another field input would be date. It would be perfect if I could limit the number - something like "not lower than 1800 and not higher than 2012" to prevent invalid numbers.

I can create a question with drop down list, but creating a list of all possible years would be stupid and uncomfortable to choose from.

share|improve this question

migrated from superuser.com Jul 1 '12 at 21:52

This question came from our site for computer enthusiasts and power users.

add comment

1 Answer 1

up vote 3 down vote accepted

Google Spreadsheet now takes into account Data Validation when submitting forms. So you can set a rule on your Age column to only allow numbers greater than 0.

When submitting a response which doesnt fit this rule the user is given this message: Oops...

I found out about it after reading this post.

share|improve this answer
    
thanks much. it helped. we also posted a request to improve this feature as it would be much better to limit the inserted value in the field directly ("This field allows only ..."). Current solution is not good for people submitting the form. –  Juhele Jul 10 '12 at 17:44
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.