simonv3 / quick-survey

A tool for quick surveys, try it out. (No longer maintained).
https://apps.sandstorm.io/app/wupmzqk4872vgsye9t9x5dmrdw17mad97dk21jvcm2ph4jataze0
MIT License
116 stars 49 forks source link

Input type Date is confusing #60

Open Sohalt opened 7 years ago

Sohalt commented 7 years ago

When creating a question with type date it is not clear for the user how they should input the date. It would be helpful to prevent wrong input from being entered into the text field at all (as opposed to just disabling the submit button) and telling the user how to input dates. Additionally it would be nice if different (localized) ways of inputting dates were supported. Otherwise a datepicker for selecting the answer would also be very nice.

simonv3 commented 7 years ago

Hey @Sohalt that's a great idea & suggestion. I'm a bit swamped right now with work so I don't see myself changing this in the future, but I am very happy to look at a PR that implements this.

Sohalt commented 7 years ago

Thanks. I sadly don't now either angular meteor, so I can't fix it right away. Maybe I'll find the time to learn it. Can you give me some hints where to look for the validation code? I couldn't find anything grepping for regex or date or similar.

simonv3 commented 7 years ago

@Sohalt just saw your reply, sorry! I'm fairly sure that there is no validation at the moment, and I can imagine that it would happen on the html tag. Angular probably even has some validation already for this. I think the easiest way of doing this might be to add a dropdown calendar selector directive.