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

Use pattern attribute for date fields #845

Closed
yannickoo opened this issue Jan 11, 2019 · 4 comments
Closed

Use pattern attribute for date fields #845

yannickoo opened this issue Jan 11, 2019 · 4 comments
Labels
invalid This doesn't seem right

Comments

@yannickoo
Copy link

yannickoo commented Jan 11, 2019

Is your feature request related to a problem? Please describe.
When trying to enter dates in a format like dd.mm.yyyy you get no error or hint regarding the format. The correct format would be yyyy-mm-dd.

Describe the solution you'd like
It would be so cool to have the pattern attribute implemented for that field so that we can define a regex for those fields.

<input type="text" pattern="[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|1[0-9]|2[0-9]|3[01])">

You can verify that pattern here in the second example: http://html5pattern.com/Dates

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #687 (Date fields are not localized), #795 (Birthday, Date of Death, Anniversary fields are date-time fields, but should only be date fields), #278 (The date fields are not working), #302 (Missing Fields), and #216 (How-to use the Social network, Instant messaging Field?).

@nextcloud-bot nextcloud-bot added the enhancement New feature or request label Jan 11, 2019
@skjnldsv
Copy link
Member

Hello! :)
@yannickoo what app version are you using?

@skjnldsv skjnldsv added the needs info Not enough information provided label Jan 11, 2019
@yannickoo
Copy link
Author

@skjnldsv it's still Nextcloud 13 and yes I know it's definitely time to upgrade 😬 Do you know if this also occurs with the latest version of Nextcloud?

@skjnldsv
Copy link
Member

@yannickoo You need to upgrade to at least 15 and contacts 3.0.0, I cannot help you on older versions :)
Only security fixes will be updated for older apps.

Please reopen after your upgrade if this is still occuring! 😉

@skjnldsv skjnldsv added invalid This doesn't seem right and removed enhancement New feature or request needs info Not enough information provided labels Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants