Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input type Date is confusing #60

Open
Sohalt opened this issue Mar 9, 2017 · 3 comments
Open

Input type Date is confusing #60

Sohalt opened this issue Mar 9, 2017 · 3 comments

Comments

@Sohalt
Copy link
Contributor

Sohalt commented Mar 9, 2017

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
Copy link
Owner

simonv3 commented Mar 9, 2017

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
Copy link
Contributor Author

Sohalt commented Mar 9, 2017

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
Copy link
Owner

simonv3 commented Jun 21, 2017

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants