Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Mykola (Nick) Tkachenko
1131
Views
2
Comments
Set max and min date on date input on iOS and Android
Question
Hi,
I'm using a input field with date Number and a callendar widget attached to it with max valu and maximu year option set up and on iOS and Android app it rocignised correctly and brings up native date selector but any date can be selected. However is there any way to set max and min possible date that are respected by native selectors?
Thank you.
Kurt Vandevelde
MVP
looking at the input_calendar widget, I think you can only specify a min and max year, not an actual date. It would be a nice feature though.
If the calender widget doesn't allow it, the only option is to add a validation when the users confirm the screen/fields.
João Rosado
Staff
Hi Mykola,
Try to add 2 extended properties in the input, called max and min. They should follow this format: "1996-12-19"
See the spec
https://here: https://www.w3.org/TR/html-markup/input.date.html
Note: didn't test it, and my experience with the date time native pickers is that they are very browser/device dependent. The standard spec for it in the html5 is very bad and many browsers do not follow it.
Regards,
João Rosado
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...